body {
    font-family: 'Inter', sans-serif;
    color: #4B5563;
    background-color: #F9FAFB;
    margin: 0;
    padding: 0;
}

.form-background {
    position: relative;
    padding: 4rem 1.5rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/back.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(4px) brightness(0.6);
    z-index: -1;
}

.form-container {
    background-color: white;
    border-radius: 0.75rem;
    padding: 2.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    z-index: 1;
    /* Initial state for popup animation */
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Visible state for popup animation */
.form-container.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h1 {
    font-weight: 800;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: #1F2937;
}

.form-header .subtitle {
    color: #6B7280;
}

.circle-icon, .circle-icon-orange {
    width: 80px;
    height: 80px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    flex-shrink: 0;
}

.circle-icon {
    background-color: #DBEAFE; /* blue-100 */
}

.circle-icon i {
    font-size: 2.25rem;
    color: #2563EB; /* blue-600 */
}

.circle-icon-orange {
    background-color: #FFEDD5; /* orange-100 */
}

.circle-icon-orange i {
    font-size: 2.25rem;
    color: #F97316; /* orange-600 */
}

.form-body {
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.input-group {
    margin-bottom: 1.25rem;
  
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.input-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid #D1D5DB;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.form-options a {
    color: #2563EB;
    text-decoration: none;
    font-weight: 600;
}

.form-options a:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 0.875rem;
    border: none;
    border-radius: 0.375rem;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    background-color: #1D4ED8;
    transition: background-color 0.3s ease;
}

.submit-btn.customer {
    background-color: #2563EB; /* blue-600 */
}

.submit-btn.customer:hover {
    background-color: #1D4ED8; /* blue-700 */
}

.submit-btn.mechanic {
    background-color: #F97316; /* orange-600 */
}

.submit-btn.mechanic:hover {
    background-color: #EA580C; /* orange-700 */
}

.bottom-link {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    text-align: center;
}

.bottom-link a {
    color: #2563EB;
    font-weight: 600;
    text-decoration: none;
}

.bottom-link a:hover {
    text-decoration: underline;
}

/* Enhanced Form Styles */
.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.form-header .logo {
    height: 60px;
    margin-bottom: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6B7280;
    cursor: pointer;
    padding: 0.25rem;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.checkbox-item:hover {
    background-color: #F3F4F6;
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #D1D5DB;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
    background-color: #2563EB;
    border-color: #2563EB;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-weight: bold;
}

.error-message {
    color: #DC2626;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

.btn-primary {
    background-color: #2563EB;
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background-color: #1D4ED8;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background-color: #9CA3AF;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background-color: #F3F4F6;
    color: #374151;
    border: 1px solid #D1D5DB;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #E5E7EB;
}

.btn-google {
    background-color: white;
    color: #374151;
    border: 1px solid #D1D5DB;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.btn-google:hover {
    background-color: #F9FAFB;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-google i {
    color: #DB4437;
}

.divider {
    text-align: center;
    position: relative;
    margin: 1.5rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #E5E7EB;
}

.divider span {
    background-color: white;
    padding: 0 1rem;
    color: #6B7280;
    font-size: 0.875rem;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.form-footer p {
    color: #6B7280;
    font-size: 0.875rem;
}

.link {
    color: #2563EB;
    text-decoration: none;
    font-weight: 600;
}

.link:hover {
    text-decoration: underline;
}

.forgot-password {
    color: #2563EB;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-loader {
    display: none;
}

.btn-primary.loading .btn-text {
    display: none;
}

.btn-primary.loading .btn-loader {
    display: inline-block;
}

/* Dashboard Styles */
.dashboard-container {
    min-height: 100vh;
    background-color: #F9FAFB;
}

.dashboard-header {
    background-color: white;
    padding: 1rem 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-left .logo {
    height: 40px;
}

.header-left h1 {
    margin: 0;
    color: #1F2937;
    font-size: 1.5rem;
    font-weight: 700;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-logout {
    background-color: #DC2626;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-logout:hover {
    background-color: #B91C1C;
}

.dashboard-nav {
    background-color: white;
    padding: 0 2rem;
    display: flex;
    gap: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.nav-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6B7280;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-btn:hover {
    color: #2563EB;
    background-color: #F3F4F6;
}

.nav-btn.active {
    color: #2563EB;
    border-bottom: 2px solid #2563EB;
    background-color: #F3F4F6;
}

.dashboard-main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card i {
    font-size: 2rem;
    color: #2563EB;
}

.stat-info h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #1F2937;
}

.stat-info p {
    margin: 0;
    color: #6B7280;
    font-size: 0.875rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 0.75rem;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #1F2937;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6B7280;
}

.close-btn:hover {
    color: #374151;
}

.modal-body {
    padding: 1.5rem;
}

/* Table Styles */
.table-container {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

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

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}

.data-table th {
    background-color: #F9FAFB;
    font-weight: 600;
    color: #374151;
}

.data-table tr:hover {
    background-color: #F9FAFB;
}

.table-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.table-controls input,
.table-controls select {
    padding: 0.5rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .dashboard-nav {
        padding: 0 1rem;
    }
    
    .dashboard-main {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .table-controls {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}