/* PNL Salonta - Main Stylesheet */

:root {
    --pnl-blue: #003DA5;
    --pnl-yellow: #FFB81C;
    --bg-light: #f5f7fa;
    --text-dark: #333;
    --text-muted: #666;
    --border-color: #ddd;
    --success: #28a745;
    --error: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* Navbar */
.navbar {
    background-color: var(--pnl-blue);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    text-align: center;
    display:flex;
    flex-direction: column;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0.65rem;
    white-space: nowrap;
    transition: background 0.3s;
}

.nav-menu a:hover {
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
    min-height: calc(100vh - 300px);
}

/* Alerts */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    position: relative;
}

.alert-success { background-color: #d4edda; border-left: 4px solid var(--success); color: #155724; }
.alert-error { background-color: #f8d7da; border-left: 4px solid var(--error); color: #721c24; }
.alert-warning { background-color: #fff3cd; border-left: 4px solid var(--warning); color: #856404; }
.alert-info { background-color: #d1ecf1; border-left: 4px solid var(--info); color: #0c5460; }

.close-alert {
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
    font-size: 1.5rem;
    color: inherit;
}

/* Auth Container */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.auth-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
}

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

.auth-header h1 {
    color: var(--pnl-blue);
    margin-bottom: 0.5rem;
}

/* Forms */
.auth-form, .form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--pnl-blue);
}

.form-group + .btn,
.form-group + button {
    margin-top: 1rem;
}

.form-group.checkbox {
    flex-direction: row;
    align-items: center;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 0.5rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--pnl-blue);
    color: white;
}

.btn-primary:hover {
    background-color: #002a7a;
}

.btn-secondary {
    background-color: var(--text-muted);
    color: white;
}

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

.auth-footer .btn-secondary {
    background-color: var(--text-muted);
    color: white;
}

.btn-warning {
    background-color: var(--pnl-yellow);
    color: var(--pnl-blue);
    font-weight: bold;
}

.btn-block {
    width: 100%;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.card h2 {
    color: var(--pnl-blue);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Dashboard */
.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    color: var(--pnl-blue);
    margin-bottom: 0.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Lists */
.org-list, .meeting-list {
    list-style: none;
}

.org-list li, .meeting-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.org-list li:last-child, .meeting-list li:last-child {
    border-bottom: none;
}

/* Info Box */
.info-box {
    background: #e7f3ff;
    border-left: 4px solid #2196F3;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.info-box h3 {
    margin-top: 0;
    color: #2196F3;
}

.info-box ul {
    margin-bottom: 0;
    list-style-position: inside;
    color: #555;
}

.info-box li {
    margin: 0.25rem 0;
}

.info-box.info {
    background-color: #e7f3ff;
    border-left: 4px solid #2196F3;
}

/* Footer */
footer {
    background-color: var(--pnl-blue);
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

.text-muted {
    color: var(--text-muted);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropbtn {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-radius: 4px;
    z-index: 1;
    right: 0;
    top: 100%;
}

.dropdown-content a,
.dropdown-content .dropdown-item-btn {
    color: var(--text-dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content .dropdown-item-btn {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.dropdown-content a:hover,
.dropdown-content .dropdown-item-btn:hover {
    background-color: var(--bg-light);
}

.dropdown-content .dropdown-item-btn.active {
    font-weight: 600;
    background-color: var(--bg-light);
}

.dropdown:hover .dropdown-content {
    display: block;
}

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

.auth-footer a {
    color: var(--pnl-blue);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: var(--pnl-blue);
    margin: 0;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.table thead {
    background-color: var(--pnl-blue);
    color: white;
}

.table th, .table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background-color: var(--bg-light);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Table inside card - remove duplicate shadow, compact layout */
.card .table {
    box-shadow: none;
}

.card .table th,
.card .table td {
    padding: 0.5rem 0.4rem;
    font-size: 0.875rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.badge-secondary {
    background-color: #e2e3e5;
    color: #383d41;
}

/* Warning Box */
.warning-box {
    background: #fff3cd;
    padding: 1rem;
    border-radius: 4px;
    border-left: 3px solid var(--warning);
    margin: 1rem 0;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.tab {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    font-weight: 500;
}

.tab:hover {
    background-color: var(--bg-light);
}

.tab.active {
    border-bottom-color: var(--pnl-blue);
    color: var(--pnl-blue);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Small Buttons */
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    line-height: 1.4;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.btn-danger {
    background-color: var(--error);
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Form Inline */
.form-inline {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-inline .form-group {
    margin-bottom: 0;
}

/* Page Footer */
.page-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Info Table */
.info-table {
    width: 100%;
}

.info-table td {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-table tr:last-child td {
    border-bottom: none;
}

.info-table td:first-child {
    width: 40%;
}

/* Signatures Grid */
.signatures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.signature-box {
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 1rem;
    background-color: #f9f9f9;
    text-align: center;
}

.signature-name {
    font-weight: bold;
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    word-wrap: break-word;
}

.signature-image-container {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.signature-image {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.signature-placeholder {
    color: #999;
    font-style: italic;
    font-size: 0.85rem;
    padding: 2rem 0;
}

.signature-date {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
}

/* ================================================
   RESPONSIVE DESIGN - MOBILE OPTIMIZATION
   ================================================ */

/* Hamburger Button (Hidden on Desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(11px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-11px);
}

/* Touch-friendly Dropdowns */
.dropdown.active .dropdown-content {
    display: block;
}

/* Table Responsive Wrapper */
.table-responsive {
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    position: relative;
}

.table-responsive::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.05));
    pointer-events: none;
}

/* ================================================
   TABLET LANDSCAPE (max-width: 1024px)
   ================================================ */

@media (max-width: 1024px) {
    .nav-menu {
        gap: 2px;
    }

    .nav-menu a {
        padding: 0.4rem 0.5rem;
        font-size: 0.85rem;
    }

    .container {
        padding: 1.5rem;
    }

    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.25rem;
    }
}

/* ================================================
   MOBILE & TABLET (max-width: 768px)
   ================================================ */

@media (max-width: 768px) {
    /* Typography */
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Container & Spacing */
    .container {
        padding: 1rem;
    }

    .card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Navigation - Mobile Menu */
    .nav-container {
        position: relative;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 145%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        gap: 0;
        z-index: 1000;
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-menu li {
        border-bottom: 1px solid #e9ecef;
    }

    .nav-menu li a {
        display: block;
        padding: 1rem 1.5rem;
        color: #003DA5;
    }

    .nav-menu li a:hover {
        background-color: #f8f9fa;
    }

    .dropdown .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        background-color: #f8f9fa;
        min-width: auto;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a,
    .dropdown-content .dropdown-item-btn {
        padding: 0.75rem 2rem;
        font-size: 0.9rem;
    }

    /* Page Headers - Stacking */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .header-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-actions .btn {
        width: 100%;
    }

    /* Buttons - Full Width */
    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .btn {
        min-height: 44px;
        padding: 0.75rem 1.25rem;
    }

    .btn-sm {
        min-height: 44px;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    /* Filters - Full Width Inputs */
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .filter-group input,
    .filter-group select {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .filter-actions {
        flex-direction: column;
    }

    .filter-actions .btn {
        width: 100%;
    }

    /* Tabs - Scrollable */
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
        padding-bottom: 0.25rem;
    }

    .tab {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    /* Tables - Horizontal Scroll */
    .table {
        font-size: 0.9rem;
    }

    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
    }

    /* Info Table */
    .info-table td:first-child {
        width: 35%;
    }

    /* Signatures Grid - Single Column */
    .signatures-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .signature-box {
        padding: 0.75rem;
    }

    /* Bulk Actions Toolbar */
    .bulk-actions-toolbar {
        padding: 0.75rem;
    }

    .bulk-actions-content {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .bulk-actions-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .bulk-actions-buttons .btn {
        width: 100%;
    }

    /* Touch Targets - Larger for Accessibility */
    input[type="checkbox"],
    input[type="radio"] {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
    }

    .alert .close-alert {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Signature Canvas - Responsive */
    .signature-container {
        max-width: 100%;
        height: auto;
    }

    /* #signature-canvas {
        max-width: 100%;
        height: auto;
    } */

    .signature-pad {
        max-width: 100%;
    }
}

/* ================================================
   MOBILE SMALL (max-width: 480px)
   ================================================ */

@media (max-width: 480px) {
    /* Typography - Smaller */
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    h3 {
        font-size: 1.15rem;
    }

    .tab-content.active {
        overflow: scroll;
    }

    /* Container - Tighter Spacing */
    .container {
        padding: 0.75rem;
    }

    .card {
        padding: 0.75rem;
        overflow: scroll;
    }

    .dashboard-grid {
        gap: 0.75rem;
    }

    /* Navigation Brand - Smaller */
    .nav-brand {
        font-size: 1rem;
        display:flex;
        flex-direction: row;
        align-items: center;
    }

    .nav-brand img {
        /* max-width: 35px; */
        max-height: 35px;
    }

    /* Buttons - Slightly Smaller Text */
    .btn {
        font-size: 0.9rem;
        padding: 0.65rem 1rem;
    }

    /* Table - Even Smaller Text */
    .table {
        font-size: 0.85rem;
    }

    .table th,
    .table td {
        padding: 0.5rem 0.4rem;
    }

    /* Badges - Smaller */
    .badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }

    /* Alert - Smaller Padding */
    .alert {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    /* Forms - Tighter Spacing */
    .form-group {
        margin-bottom: 0.75rem;
    }

    .form-group label {
        margin-bottom: 0.3rem;
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem 0.8rem;
        font-size: 16px; /* Prevent iOS zoom */
    }
}

/* ================================================
   PASSWORD UTILITIES STYLES
   ================================================ */

/* Password Wrapper with Toggle Button */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    flex: 1;
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    z-index: 1;
    transition: opacity 0.2s;
}

.password-toggle:hover {
    opacity: 0.7;
}

.password-toggle:focus {
    outline: 2px solid var(--pnl-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Password Strength Meter */
.password-strength-meter {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
    background-color: #ddd;
}

#strengthText {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Password Requirements Checklist */
.password-requirements {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0 0;
    font-size: 0.85rem;
}

.password-requirements li {
    margin: 0.35rem 0;
    padding-left: 0.25rem;
    transition: color 0.2s ease;
}

/* Mobile Adjustments for Password Utils */
@media (max-width: 480px) {
    .password-wrapper input {
        padding-right: 2.5rem;
    }

    .password-toggle {
        font-size: 1rem;
        padding: 0.4rem;
    }

    .password-requirements {
        font-size: 0.8rem;
    }
}

/* ================================================
   TOAST NOTIFICATIONS
   ================================================ */

/* Toast Container - fixed în colțul din dreapta sus */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
    pointer-events: none;
}

/* Toast individual */
.toast {
    padding: 14px 44px 14px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastSlideIn 0.3s ease-out;
    position: relative;
    min-width: 280px;
    pointer-events: auto;
    font-size: 0.95rem;
    line-height: 1.4;
}

.toast.hiding {
    animation: toastSlideOut 0.3s ease-in forwards;
}

/* Variante de culoare */
.toast-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    color: white;
}

.toast-error {
    background: linear-gradient(135deg, #dc3545 0%, #bb2d3b 100%);
    color: white;
}

.toast-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
}

.toast-info {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: white;
}

/* Buton close */
.toast-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0.7;
    padding: 4px 8px;
    line-height: 1;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

/* Toast message */
.toast-message {
    flex: 1;
}

/* Animații */
@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Toast responsive */
@media (max-width: 480px) {
    .toast-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }

    .toast {
        min-width: auto;
        font-size: 0.9rem;
    }
}

/* ================================================
   CONFIRM MODAL
   ================================================ */

.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.confirm-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.confirm-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 420px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.2s;
}

.confirm-modal-overlay.show .confirm-modal {
    transform: scale(1);
}

.confirm-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.confirm-modal-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.confirm-modal-icon.danger {
    background: #fee2e2;
    color: #dc3545;
}

.confirm-modal-icon.warning {
    background: #fef3c7;
    color: #d97706;
}

.confirm-modal-icon.info {
    background: #dbeafe;
    color: #2563eb;
}

.confirm-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.confirm-modal-body {
    padding: 1.25rem 1.5rem;
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.95rem;
}

.confirm-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.confirm-modal-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
}

.confirm-modal-btn-cancel {
    background: #f3f4f6;
    color: #374151;
}

.confirm-modal-btn-cancel:hover {
    background: #e5e7eb;
}

.confirm-modal-btn-confirm {
    background: #dc3545;
    color: white;
}

.confirm-modal-btn-confirm:hover {
    background: #bb2d3b;
}

.confirm-modal-btn-confirm.warning {
    background: #f59e0b;
}

.confirm-modal-btn-confirm.warning:hover {
    background: #d97706;
}

/* Confirm Modal responsive */
@media (max-width: 480px) {
    .confirm-modal {
        width: 95%;
        margin: 1rem;
    }

    .confirm-modal-header,
    .confirm-modal-body,
    .confirm-modal-footer {
        padding: 1rem;
    }

    .confirm-modal-footer {
        flex-direction: column-reverse;
    }

    .confirm-modal-btn {
        width: 100%;
    }
}
