.custom-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease;
    backdrop-filter: blur(3px);
}

.custom-modal-overlay.active {
    display: flex;
}

.custom-modal {
    background: var(--dark-surface);
    border-radius: 15px;
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.custom-modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.custom-modal-icon.confirm {
    color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
}

.custom-modal-icon.alert {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.custom-modal-icon.success {
    color: var(--primary-color);
    background: rgba(46, 204, 113, 0.1);
}

.custom-modal-icon.error {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.custom-modal-title {
    flex: 1;
}

.custom-modal-title h3 {
    margin: 0;
    color: var(--dark-text);
    font-size: 1.3rem;
}

.custom-modal-body {
    color: var(--dark-text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.custom-modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.custom-modal-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Ubuntu', sans-serif;
    font-size: 1rem;
}

.custom-modal-btn-cancel {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--dark-text-secondary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 15px rgba(0, 0, 0, 0.1);
}

.custom-modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--dark-text);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 25px rgba(255, 255, 255, 0.15);
}

.custom-modal-btn-confirm,
.custom-modal-btn-ok {
    background: rgba(46, 204, 113, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(46, 204, 113, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 15px rgba(0, 0, 0, 0.15);
}

.custom-modal-btn-confirm:hover,
.custom-modal-btn-ok:hover {
    background: rgba(46, 204, 113, 0.25);
    border-color: rgba(46, 204, 113, 0.5);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 25px rgba(46, 204, 113, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .custom-modal {
        padding: 1.5rem;
        width: 95%;
    }

    .custom-modal-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .custom-modal-title h3 {
        font-size: 1.1rem;
    }

    .custom-modal-body {
        font-size: 0.95rem;
    }

    .custom-modal-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }
}

.admin-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease;
    backdrop-filter: blur(3px);
}

.admin-modal-box {
    background: var(--dark-surface, #1e1e1e);
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    border: 1px solid rgba(46, 204, 113, 0.2);
    overflow: hidden;
}

.admin-modal-header {
    background: rgba(46, 204, 113, 0.1);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(46, 204, 113, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-modal-header h2 {
    margin: 0;
    color: var(--primary-color, #2ecc71);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-modal-close {
    background: transparent;
    border: none;
    color: var(--dark-text-secondary, #b0b0b0);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border-radius: 50%;
}

.admin-modal-close:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    transform: rotate(90deg);
}

.admin-modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.admin-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--dark-divider, #333);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    background: rgba(0, 0, 0, 0.2);
}

.admin-modal-body .form-group {
    margin-bottom: 1.2rem;
}

.admin-modal-body .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-text, #f0f0f0);
}

.admin-modal-body .form-control {
    width: 100%;
    padding: 0.8rem;
    background: var(--dark-bg, #121212);
    border: 1px solid var(--dark-divider, #333);
    border-radius: 5px;
    color: var(--dark-text, #f0f0f0);
    font-size: 1rem;
    transition: border 0.3s;
    font-family: 'Ubuntu', sans-serif;
}

.admin-modal-body .form-control:focus {
    outline: none;
    border-color: var(--primary-color, #2ecc71);
}

.admin-modal-body textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

@media (max-width: 768px) {
    .admin-modal-box {
        width: 95%;
        max-width: none;
    }

    .admin-modal-header {
        padding: 1rem;
    }

    .admin-modal-header h2 {
        font-size: 1.1rem;
    }

    .admin-modal-body {
        padding: 1rem;
    }

    .admin-modal-footer {
        padding: 0.8rem 1rem;
        flex-direction: column;
    }

    .admin-modal-footer .btn {
        width: 100%;
    }
}