    body { font-family: 'Tahoma', sans-serif; margin: 0; background-color: #e8f5e9; color: #333; }
    .header { background-color: #388e3c; color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
    .header h1 { margin: 0; font-size: 1.5em; }
    .logout-btn { color: white; text-decoration: none; padding: 8px 15px; border: 1px solid white; border-radius: 5px; transition: background-color 0.3s; }
    .logout-btn:hover { background-color: rgba(255,255,255,0.2); }

    .dashboard-container { max-width: 1100px; margin: 20px auto; padding: 0 20px; }
    .dashboard-card {
        background: #ffffff; 
        border-radius: 8px;
        padding: 20px;
        margin-bottom: 20px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
    }
    .dashboard-card h2 { margin-bottom: 15px; color: #2e7d32; border-bottom: 2px solid #c8e6c9; padding-bottom: 8px; }
    .appointments-table, .patients-table, .debtors-table { 
        width: 100%; 
        border-collapse: collapse; 
        margin-top: 10px; 
        box-shadow: 0 1px 3px rgba(0,0,0,0.08); 
    }
    .appointments-table th, .appointments-table td, .patients-table th, .patients-table td, .debtors-table th, .debtors-table td {
        border: 1px solid #c8e6c9;
        padding: 10px 12px; 
        text-align: center; 
    }
    .appointments-table th, .patients-table th, .debtors-table th {
        background-color: #e8f5e9; 
        color: #388e3c; 
        font-weight: bold;
    }
    .appointments-table tbody tr:nth-child(even), .patients-table tbody tr:nth-child(even), .debtors-table tbody tr:nth-child(even) { 
        background-color: #f1f8e9; 
    }
    .appointments-table tbody tr:hover, .patients-table tbody tr:hover, .debtors-table tbody tr:hover { 
        background-color: #dcedc8; 
    }

    .action-links, .form-actions { text-align: center; margin-top: 15px; } 
    .action-links a, .form-actions button, .form-actions input[type="submit"], .action-btn {
        display: inline-block; 
        margin: 5px;
        padding: 10px 15px; 
        border-radius: 6px;
        text-decoration: none;
        background: #4caf50; 
        color: white;
        font-size: 15px; 
        transition: background-color 0.3s, transform 0.2s; 
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        border: none; 
        cursor: pointer; 
    }
    .action-links a:hover, .form-actions button:hover, .form-actions input[type="submit"]:hover, .action-btn:hover {
        background: #66bb6a; 
        transform: translateY(-2px); 
    }
    
    .add-patient-form, .delete-patient-form {
        background: #f9fbe7; 
        border: 1px solid #e8f5e9;
        padding: 20px;
        border-radius: 8px;
        margin-bottom: 20px;
        box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    }
    .add-patient-form h3, .delete-patient-form h3 {
        margin-top: 0;
        color: #388e3c;
        border-bottom: 1px solid #e8f5e9;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }
    .add-patient-form label, .delete-patient-form label {
        display: block;
        margin-bottom: 8px;
        font-weight: bold;
        color: #33691e; 
    }
    .add-patient-form input[type="text"], 
    .add-patient-form input[type="date"], 
    .add-patient-form input[type="tel"], 
    .add-patient-form textarea,
    .delete-patient-form input[type="text"],
    .delete-patient-form input[type="number"] {
        width: calc(100% - 24px); 
        padding: 10px; 
        border: 1px solid #c8e6c9; 
        border-radius: 6px; 
        font-size: 14px;
        margin-bottom: 15px;
        box-sizing: border-box; 
    }
     .add-patient-form textarea {
        resize: vertical; 
        min-height: 80px;
    }
    .add-patient-form input[type="submit"], .delete-patient-form input[type="submit"] {
        background-color: #4caf50; /* Primary green */
    }
    .add-patient-form input[type="submit"]:hover, .delete-patient-form input[type="submit"]:hover {
        background-color: #66bb6a; /* Lighter green on hover */
    }

    .search-box { margin-bottom: 15px; }
    .search-box input[type="text"] { 
        width: calc(100% - 24px); 
        padding: 10px; 
        border: 1px solid #c8e6c9; 
        border-radius: 6px; 
        font-size: 14px;
        box-sizing: border-box; 
    }

    /* Pagination styles */
    .pagination { text-align: center; margin-top: 20px; }
    .pagination a {
        display: inline-block;
        margin: 0 5px;
        padding: 8px 12px;
        border-radius: 4px;
        text-decoration: none;
        background-color: #ffffff;
        color: #388e3c; 
        border: 1px solid #e8f5e9;
        transition: background-color 0.3s, color 0.3s;
    }
    .pagination a.active {
        background-color: #4caf50;
        color: white;
        font-weight: bold;
        border-color: #4caf50;
    }
     .pagination a:hover:not(.active) {
        background-color: #f1f8e9;
        color: #2e7d32;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .dashboard-container { padding: 10px; }
        .dashboard-card { padding: 15px; }
        .header { flex-direction: column; padding: 10px; }
        .header h1 { font-size: 1.2em; margin-bottom: 10px;}
        .action-links a, .form-actions button { width: 90%; margin: 5px auto; display: block; }
        .table-wrap, .patients-table, .debtors-table, .add-patient-form, .delete-patient-form { overflow-x: auto; }
        .add-patient-form input[type="text"], .add-patient-form input[type="date"], .add-patient-form input[type="tel"], .add-patient-form textarea, .delete-patient-form input[type="text"], .delete-patient-form input[type="number"] { width: calc(100% - 16px); }
    }

    /* ---------------------- Login Page Styles (No Conflict) ---------------------- */
    .login-container {
        max-width: 380px;
        margin: 80px auto;
        background: #ffffff;
        padding: 25px 30px;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
        border: 1px solid #c8e6c9;
        text-align: center;
        animation: loginFade 0.5s ease;
    }

    @keyframes loginFade {
        from { opacity: 0; transform: translateY(15px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .login-container h2 {
        margin-bottom: 20px;
        color: #2e7d32;
        border-bottom: 2px solid #c8e6c9;
        padding-bottom: 10px;
        font-size: 1.3em;
    }

    .login-container .form-group {
        text-align: right;
        margin-bottom: 18px;
    }

    .login-container label {
        font-weight: bold;
        font-size: 14px;
        color: #33691e;
        display: block;
        margin-bottom: 6px;
    }

    .login-container input[type="text"],
    .login-container input[type="password"] {
        width: 100%;
        padding: 10px;
        border: 1px solid #c8e6c9;
        border-radius: 6px;
        font-size: 14px;
        box-sizing: border-box;
        transition: border-color 0.25s, box-shadow 0.25s;
        background: #f9fff9;
    }

    .login-container input:focus {
        border-color: #66bb6a;
        outline: none;
        box-shadow: 0 0 4px rgba(102,187,106,0.5);
    }

    .btn-submit {
        width: 100%;
        padding: 10px 0;
        background: #4caf50;
        color: white;
        border: none;
        border-radius: 6px;
        font-size: 15px;
        cursor: pointer;
        transition: background-color 0.3s, transform 0.2s;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }

    .btn-submit:hover {
        background: #66bb6a;
        transform: translateY(-2px);
    }

    .error-message {
        background: #ffebee;
        color: #c62828;
        border: 1px solid #ffcdd2;
        padding: 10px;
        border-radius: 6px;
        margin-bottom: 15px;
        font-size: 14px;
    }

    /* Responsive */
    @media (max-width: 480px) {
        .login-container {
            margin: 40px 15px;
            padding: 20px;
        }
    }
    
    /* Cancel Button – Grey Style */
    .cancel-btn {
        display: inline-block;
        margin: 5px;
        padding: 10px 15px;
        border-radius: 6px;
        text-decoration: none;
        background: #9e9e9e; 
        color: white;
        font-size: 15px;
        transition: background-color 0.3s, transform 0.2s;
        box-shadow: 0 2px 4px rgba(0,0,0,0.15);
        border: none;
    }

    .cancel-btn:hover {
        background: #bdbdbd; 
        transform: translateY(-2px);
    }


    /* استایل برای پیام موفقیت */
        .success-message {
            background-color: #d4edda; 
            color: #155724; 
            border: 1px solid #c3e6cb;
            padding: 15px;
            margin-bottom: 20px;
            border-radius: 5px;
            text-align: center;
            font-size: 1.1em;
        }
        .login-container .error-message, 
        .login-container .success-message {
             width: calc(100% - 30px); 
             margin-left: auto;
             margin-right: auto;
        }
