/* Modal Styles */
.modal-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--popup-darker-layer);
    z-index: 9999999999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-container.active {
    display: flex;
}

.modal-content {
    background: var(--card-background);
    border: 1px solid var(--dash-border);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 32px var(--popup-darker-layer);
    color: var(--light);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--dash-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    color: var(--base-color);
}

.modal-header .close-modal {
    background: var(--dash-action-bg);
    border: 1px solid var(--dash-border);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-header .close-modal:hover {
    background: var(--dash-tab-bg);
    color: var(--base-color);
    border-color: var(--base-color);
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--dash-border);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--greyish);
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: var(--dash-action-bg);
    border: 1px solid var(--dash-border);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--light);
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    font-family: var(--font-primary) !important;
    -moz-appearance: none;
}

.form-group input::placeholder {
    color: var(--greyish);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--base-color);
    background: var(--dash-tab-bg);
}

/* Card Form Specific Styles */
.card-icon {
    font-size: 24px;
    color: var(--base-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 15px;
    }
    
    .row.gap-20 {
        flex-direction: column;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        padding: 20px;
    }
}

/* Animation */
.modal-container.active .modal-content {
    animation: modalSlideIn 0.3s ease forwards;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Styles - Matching Existing */
.modal-footer .solidBtn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer !important;
}

.modal-footer .solidBtn.outlineBtn {
    background: var(--dash-action-bg);
    border: 1px solid var(--dash-border);
    color: var(--light);
    font-family: var(--font-primary) !important;
}

.modal-footer .solidBtn.outlineBtn:hover {
    border-color: var(--base-color);
    color: var(--base-color);
}

.modal-footer .solidBtn:not(.outlineBtn) {
    background: var(--base-color);
    border: 1px solid var(--base-color);
    color: var(--light);
    font-family: var(--font-primary) !important;
}

.modal-footer .solidBtn:not(.outlineBtn):hover {
    background: var(--hover-color);
    border-color: var(--hover-color);
}

.message-confirm {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--popup-darker-layer);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999999999;
    backdrop-filter: blur(8px);
}

.message-confirm .message-content {
    background: var(--card-background);
    border: 1px solid var(--dash-border);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 15px 40px var(--popup-darker-layer);
    text-align: center;
    max-width: 420px;
    width: 90%;
        max-height: 80vh !important;
    overflow-y: scroll !important;
    animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: center;
    display: block !important;
}
@media(max-width:767px){
    .message-confirm .message-content
    {
        max-height:95vh !important;
        width:95% !important;
    }
}
.message-confirm .message-header {
    padding: 30px 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.message-confirm .message-header i {
    font-size: 32px;
    color: var(--red);
    background: var(--dash-action-bg);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--dash-border);
}

.message-confirm .message-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--light);
    font-weight: 600;
}

.message-confirm .message-body {
    padding: 0 30px 25px;
    color: var(--greyish);
    font-size: 1.05rem;
    line-height: 1.6;
}

.message-confirm .message-actions {
    padding: 20px 30px;
    border-top: 1px solid var(--dash-border);
    display: flex;
    justify-content: flex-end;
    justify-content: center !important;
    gap: 15px;
}

.message-confirm .message-actions{
    justify-content: center !important;
}

.message-confirm .message-actions button {
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-primary) !important;
    font-size: 1rem;
}

.message-confirm .message-actions .confirm-yes {
    background: var(--red);
    border: 1px solid var(--red);
    color: var(--light);
}

.message-confirm .message-actions .confirm-yes:hover {
    background: var(--light-red);
    border-color: var(--light-red);
    transform: translateY(-2px);
}

.message-confirm .message-actions .confirm-no {
    background: var(--dash-action-bg);
    border: 1px solid var(--dash-border);
    color: var(--light);
}

.message-confirm .message-actions .confirm-no:hover {
    border-color: var(--base-color);
    color: var(--base-color);
    transform: translateY(-2px);
}

button#add-ip {
    color: var(--success-color);
    border: 1px solid var(--success-color);
    background: transparent;
    width: 50px !important;
    border-radius: 6px !important;
    font-family: var(--font-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

button#add-ip:hover {
    background: var(--success-color);
    color: var(--light);
}

.justify-center-cookie-footer
{
    justify-content: center !important;
}

.delete-model{
    max-width: 450px !important;
}

.form-group.column-33 {
    width: 33.3% !important;
    min-width: 0 !important;
}

.form-group.column-33 input, .form-group.column-33 select {
    min-width: 0 !important;
}

.checkbox-input-33
{
    width: 25px !important;
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
} 