@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f0f0f0;
    min-height: 100vh;
    color: #4a4a4a;
}

/* Header */
.header {
    background-color: #f0f0f0;
    padding: 15px 25px;
    border-bottom: 1px solid #e0e0e0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #2a2a2a;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #666;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 25px;
    padding: 25px;
}

/* Sidebar */
.sidebar {
    width: 220px;
    background-color: #f0f0f0;
    border-radius: 15px;
    padding: 20px 15px;
    box-shadow: 8px 8px 15px #d1d1d1, -8px -8px 15px #ffffff;
    height: fit-content;
}

.sidebar h3 {
    margin-bottom: 15px;
    color: #2a2a2a;
    font-weight: 500;
    font-size: 16px;
}

.menu-item {
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.menu-item:hover {
    color: #2a2a2a;
    transform: translateY(-1px);
    text-decoration: none;
}

.menu-item.active {
    color: #2a2a2a;
    background-color: #f0f0f0;
    box-shadow: inset 6px 6px 12px #d1d1d1, inset -6px -6px 12px #ffffff;
}

.menu-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
}

/* Cards */
.card {
    background-color: #f0f0f0;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 8px 8px 15px #d1d1d1, -8px -8px 15px #ffffff;
    margin-bottom: 25px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #2a2a2a;
    margin-bottom: 20px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background-color: #f0f0f0;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 6px 6px 12px #d1d1d1, -6px -6px 12px #ffffff;
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: 600;
    color: #2a2a2a;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #888;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2a2a2a;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    background: #f8f8f8;
    box-shadow: inset 4px 4px 8px #d1d1d1, inset -4px -4px 8px #ffffff;
    font-size: 14px;
    color: #666;
    outline: none;
}

.form-control:focus {
    box-shadow: inset 6px 6px 12px #d1d1d1, inset -6px -6px 12px #ffffff;
}

/* Buttons */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #f0f0f0;
    color: #2a2a2a;
    box-shadow: 6px 6px 12px #d1d1d1, -6px -6px 12px #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
}

.btn-success {
    background: #4CAF50;
    color: white;
    box-shadow: 4px 4px 8px rgba(76, 175, 80, 0.3);
}

.btn-danger {
    background: #f44336;
    color: white;
    box-shadow: 4px 4px 8px rgba(244, 67, 54, 0.3);
}

/* Tables */
.table-container {
    background-color: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 4px 4px 8px #d1d1d1, inset -4px -4px 8px #ffffff;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
    font-size: 13px;
}

th {
    font-weight: 600;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Search Bar */
.search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: none;
    border-radius: 10px;
    background: #f8f8f8;
    box-shadow: inset 4px 4px 8px #d1d1d1, inset -4px -4px 8px #ffffff;
    font-size: 14px;
    color: #666;
    outline: none;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
}

.login-card {
    background-color: #f0f0f0;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 20px 20px 40px #d1d1d1, -20px -20px 40px #ffffff;
    width: 100%;
    max-width: 400px;
}

.login-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #2a2a2a;
    margin-bottom: 30px;
}

/* Signature Pad */
.signature-container {
    margin-bottom: 20px;
}

.signature-pad {
    border: 2px dashed #ccc;
    border-radius: 10px;
    background: white;
    cursor: crosshair;
}

/* Alert Messages */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
        padding: 15px;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}