/* Prism DNS Web Interface Styles */

/* Global Styles */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 70px; /* Account for fixed navbar */
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    min-height: 60px;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
    transition: opacity 0.3s ease;
}

.navbar-brand:hover {
    opacity: 0.8;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover:not(.disabled) {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background-color: white;
    border-radius: 3px;
}

.navbar-nav .nav-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Avatar Circle */
.avatar-circle {
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover .avatar-circle {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Dropdown Styles */
.navbar .dropdown-menu {
    margin-top: 0.5rem;
    min-width: 200px;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.1);
        margin: 0 -1rem;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 0.5rem;
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    #sessionTimerContainer {
        padding: 0.5rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 0.5rem;
    }
    
    .navbar-nav .dropdown-menu {
        background-color: rgba(0, 0, 0, 0.2);
        border: none;
        margin: 0;
    }
    
    .navbar-nav .dropdown-item {
        color: rgba(255, 255, 255, 0.9);
        padding: 0.75rem 1rem;
    }
    
    .navbar-nav .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
    }
}

@media (max-width: 767px) {
    .navbar-nav .dropdown-menu {
        position: static;
        background-color: rgba(255, 255, 255, 0.1);
        border: none;
    }
    
    .navbar-nav .dropdown-item {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .navbar-nav .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
    }
}

/* Session Timer Styles */
#sessionTimer {
    transition: color 0.3s ease;
}

#sessionTimer.text-danger {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* View Management */
.view {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cards */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

/* Status Indicators */
.status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-online {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #a3cfbb;
}

.status-offline {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f1aeb5;
}

.status-warning {
    background-color: #fff3cd;
    color: #664d03;
    border: 1px solid #ffda6a;
}

/* Table Styles */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    vertical-align: middle;
}

.table tbody tr {
    transition: background-color 0.15s ease-in-out;
}

.table tbody tr:hover {
    background-color: #f5f5f5;
}

.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.sortable:hover {
    background-color: #e9ecef !important;
}

.sortable i {
    opacity: 0.5;
    transition: opacity 0.15s ease-in-out;
}

.sortable:hover i {
    opacity: 1;
}

.sortable.sort-asc i::before {
    content: "\f148"; /* bi-arrow-up */
}

.sortable.sort-desc i::before {
    content: "\f149"; /* bi-arrow-down */
}

/* Search and Filter */
.input-group .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

/* Loading States */
.spinner-border {
    width: 2rem;
    height: 2rem;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Error States */
.alert {
    border-radius: 0.5rem;
    border: none;
}

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

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-info {
    background-color: #cff4fc;
    color: #055160;
}

/* Status Bar */
#status-bar {
    border-radius: 0;
    margin-bottom: 0;
    font-size: 0.875rem;
}

/* Dashboard Specific */
.dashboard-card {
    text-align: center;
    padding: 1.5rem;
}

.dashboard-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dashboard-card p {
    font-size: 1.1rem;
    margin-bottom: 0;
    opacity: 0.9;
}

/* Host Detail Modal */
.host-detail-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.host-detail-item:last-child {
    border-bottom: none;
}

.host-detail-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
}

.host-detail-value {
    color: #6c757d;
    font-family: 'Courier New', monospace;
}

.host-linked-record {
    background-color: rgba(13, 148, 136, 0.12);
}

.host-linked-record td {
    border-top: 1px solid rgba(13, 148, 136, 0.15);
}

.host-linked-record td:first-child {
    border-left: 4px solid #0d9488;
}

.badge-host-record {
    background-color: #0d9488;
    color: #ffffff;
}

#host-zone-control .form-select-sm {
    min-width: 180px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .dashboard-card h3 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .dashboard-card {
        padding: 1rem;
    }
    
    .dashboard-card h3 {
        font-size: 1.75rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Animation Utilities */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.slide-in {
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from { transform: translateX(-10px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Utility Classes */
.text-monospace {
    font-family: 'Courier New', monospace;
}

.cursor-pointer {
    cursor: pointer;
}

.user-select-none {
    user-select: none;
}

/* Login Page Styles */
#login-view {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
}

#login-view .card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#login-view .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

#login-view .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    transition: all 0.3s ease;
}

#login-view .btn-primary:hover:not(:disabled) {
    background-color: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

#login-view .btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Password toggle button */
#togglePassword {
    border-left: none;
    background-color: white;
}

#togglePassword:hover {
    background-color: #f8f9fa;
}

/* Remember me checkbox */
.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Login error alert */
#loginError {
    margin-bottom: 1rem;
}

/* Registration Page Styles */
#register-view {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
}

#register-view .card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Password strength indicator */
.password-strength .progress {
    background-color: #e9ecef;
}

.password-requirements {
    background-color: #f8f9fa;
    padding: 0.75rem;
    border-radius: 0.25rem;
    border: 1px solid #dee2e6;
}

.req-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.req-item:last-child {
    margin-bottom: 0;
}

.req-item i {
    font-size: 0.875rem;
    color: #6c757d;
}

.req-item i.text-success {
    color: #28a745 !important;
}

/* Registration form validation */
#register-view .form-control.is-valid {
    border-color: #28a745;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Registration alert */
#registerAlert {
    margin-bottom: 1rem;
}

/* Email Verification Pages */
#verify-email-sent-view,
#verify-email-view {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
}

/* Small alerts */
.alert-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Animated envelope icon */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.bi-envelope-check {
    animation: pulse 2s infinite;
}

/* Success check animation */
@keyframes checkmark {
    0% { transform: scale(0) rotate(0deg); }
    50% { transform: scale(1.2) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.bi-check-circle[style*="animation"] {
    animation: checkmark 0.5s ease-out !important;
}

/* Resend button states */
#resendBtn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Verification states */
#verifyingState .spinner-border {
    animation: spinner-border .75s linear infinite;
}

#errorState .bi-x-circle {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Instructions list styling */
.alert-info ol {
    padding-left: 1.5rem;
}

.alert-info ol li {
    margin-bottom: 0.25rem;
}

/* Email verification card shadows */
#verify-email-sent-view .card,
#verify-email-view .card {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Forgot Password Page Styles */
#forgot-password-view {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
}

#forgot-password-view .card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#forgot-password-view .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

#forgot-password-view .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    transition: all 0.3s ease;
}

#forgot-password-view .btn-primary:hover:not(:disabled) {
    background-color: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

#forgot-password-view .btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Success state styling */
#forgotPasswordSuccess .bi-envelope-check {
    animation: pulse 2s infinite;
}

/* Rate limit warning */
#rateLimitWarning {
    margin-top: 1rem;
}

#rateLimitWarning .alert {
    margin-bottom: 0;
}

/* Resend link hover effect */
#resendResetLink:hover {
    text-decoration: underline !important;
}

/* Session Management Styles */
#sessionTimer {
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

#sessionTimer i {
    font-size: 0.875rem;
}

#sessionTimerContainer {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 1rem;
}

/* Session Warning Modal */
#sessionWarningModal .modal-content {
    border: 2px solid #ffc107;
}

#sessionWarningModal .modal-header {
    background-color: #fff3cd;
    border-bottom: 1px solid #ffeaa7;
}

#sessionWarningModal .bi-clock-history {
    font-size: 1.5rem;
}

#sessionCountdown {
    font-size: 1.25rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

/* Auto-logout notification */
#autoLogoutNotification {
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Reset Password Page Styles */
#reset-password-view {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
}

#reset-password-view .card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#reset-password-view .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

#reset-password-view .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    transition: all 0.3s ease;
}

#reset-password-view .btn-primary:hover:not(:disabled) {
    background-color: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

#reset-password-view .btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Token validation spinner */
#validatingState .spinner-border {
    animation: spinner-border .75s linear infinite;
}

/* Success state animation */
#resetSuccessState .bi-check-circle {
    animation: checkmark 0.5s ease-out;
}

/* Password toggle buttons */
#toggleNewPassword,
#toggleConfirmPassword {
    border-left: none;
    background-color: white;
}

#toggleNewPassword:hover,
#toggleConfirmPassword:hover {
    background-color: #f8f9fa;
}

/* Invalid token state */
#invalidTokenState .alert-danger {
    border-radius: 0.5rem;
}

/* Password requirements for reset page */
#resetPasswordReqs {
    background-color: #f8f9fa;
    padding: 0.75rem;
    border-radius: 0.25rem;
    border: 1px solid #dee2e6;
}

#resetPasswordReqs .req-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

#resetPasswordReqs .req-item:last-child {
    margin-bottom: 0;
}

#resetPasswordReqs .req-item i {
    font-size: 0.875rem;
    color: #6c757d;
}

#resetPasswordReqs .req-item i.text-success {
    color: #28a745 !important;
}

/* Route Loading Styles */
body.route-loading {
    position: relative;
    pointer-events: none;
    user-select: none;
}

body.route-loading::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9998;
    backdrop-filter: blur(2px);
}

body.route-loading::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0d6efd;
    border-radius: 50%;
    animation: routeLoadingSpin 0.8s linear infinite;
    z-index: 9999;
}

@keyframes routeLoadingSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Route transition animations */
.view {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.view[style*="display: block"] {
    opacity: 1;
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Page Styles */
#profile-view .card-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

#profile-view dl {
    margin-bottom: 0;
}

#profile-view dt {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
}

#profile-view dd {
    color: #6c757d;
    margin-bottom: 1rem;
}

#profile-view dd:last-child {
    margin-bottom: 0;
}

#profileAvatar {
    border: 3px solid #dee2e6;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

#editProfileForm .form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

#editProfileForm textarea {
    resize: vertical;
    min-height: 100px;
}

#bioCharCount {
    transition: color 0.3s ease;
}

/* Settings Page Styles */
.settings-section {
    min-height: 500px;
}

#settingsNav .list-group-item {
    border: none;
    padding: 0.75rem 1.25rem;
}

#settingsNav .list-group-item:hover:not(.active) {
    background-color: #f8f9fa;
}

#settingsNav .list-group-item.active {
    background-color: #0d6efd;
    color: white;
}

#settingsNav .list-group-item.active i {
    color: white;
}

#settingsNav .list-group-item i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

#settingsNav .list-group-item.text-danger:hover {
    background-color: #fff5f5;
}

/* Mobile collapse indicator */
@media (max-width: 767.98px) {
    .card-header[data-bs-toggle="collapse"] {
        cursor: pointer;
        user-select: none;
    }
    
    .card-header[data-bs-toggle="collapse"] i {
        transition: transform 0.3s;
    }
    
    .card-header[data-bs-toggle="collapse"][aria-expanded="true"] i {
        transform: rotate(180deg);
    }
    
    #settings-view .col-md-3 {
        margin-bottom: 1rem;
    }
}

/* Settings form styles */
.settings-section .form-check-label small {
    line-height: 1.3;
}

.settings-section .card-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

#settingsAccount .card-header.bg-danger {
    background-color: #dc3545 !important;
}

/* Active sessions list */
#activeSessions .list-group-item {
    border: 1px solid #dee2e6;
    margin-bottom: 0.5rem;
}

#activeSessions .list-group-item:last-child {
    margin-bottom: 0;
}

/* Password Change Page Styles */
#password-change-view .card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

#password-change-view .card-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

#passwordRequirements ul {
    list-style: none;
    padding-left: 0;
}

#passwordRequirements li {
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

#passwordRequirements li i {
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

#passwordRequirements .text-success i {
    color: #28a745 !important;
}

#passwordRequirements .text-danger i {
    color: #dc3545 !important;
}

.password-requirements {
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

/* Activity Page Styles */
.activity-list {
    min-height: 400px;
}

.activity-item {
    transition: background-color 0.2s;
}

.activity-item:hover {
    background-color: #f8f9fa;
}

.activity-item:last-child {
    border-bottom: none !important;
}

.activity-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 50%;
}

.activity-icon i {
    font-size: 1.25rem;
}

.activity-title {
    color: #212529;
    font-weight: 500;
}

.activity-details {
    color: #6c757d;
}

/* Event type specific colors */
.activity-icon .text-success { color: #28a745 !important; }
.activity-icon .text-danger { color: #dc3545 !important; }
.activity-icon .text-warning { color: #ffc107 !important; }
.activity-icon .text-info { color: #17a2b8 !important; }
.activity-icon .text-primary { color: #007bff !important; }
.activity-icon .text-secondary { color: #6c757d !important; }

/* Activity filters */
#activity-view .form-label {
    font-weight: 500;
    font-size: 0.875rem;
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    #status-bar {
        display: none !important;
    }
    
    .card {
        border: 1px solid #dee2e6 !important;
        box-shadow: none !important;
    }
    
    body {
        background-color: white !important;
    }
}
/* DNS Zones Styles */
#dnsZoneDetailModal .modal-dialog {
    max-width: 1200px;
}

#dnsZoneDetailModal .nav-tabs .nav-link {
    color: #495057;
    border-color: #dee2e6 #dee2e6 #fff;
}

#dnsZoneDetailModal .nav-tabs .nav-link.active {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

#dnsZoneDetailModal .card-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

#dnsZoneDetailModal dl.row dt {
    text-align: right;
}

#dnsZoneDetailModal dl.row dd {
    margin-bottom: .5rem;
}

/* DNS Zone Wizard Styles */
#dnsZoneWizardModal .modal-dialog {
    max-width: 800px;
}

#dnsZoneWizardModal .modal-body {
    min-height: auto;
    max-height: 70vh;
    overflow-y: auto;
    padding-bottom: 20px;
}

#dnsZoneWizardModal #wizardContent {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 10px;
    min-height: 400px;
}

#dnsZoneWizardModal .step-content {
    min-height: 350px;
}

.wizard-progress {
    margin-bottom: 1rem;
}

.step-indicators {
    position: relative;
}

.step-indicator {
    position: relative;
    flex: 1;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #dee2e6;
    z-index: -1;
}

.step-indicator:last-child::before {
    display: none;
}

.step-indicator.completed::before {
    background-color: #28a745;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #dee2e6;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.step-indicator.active .step-number {
    background-color: #007bff;
    color: white;
}

.step-indicator.completed .step-number {
    background-color: #28a745;
    color: white;
}

.step-label {
    font-size: 0.875rem;
}

.template-option {
    cursor: pointer;
    transition: all 0.2s;
}

.template-option:hover {
    border-color: #007bff !important;
}

.template-option.border-primary {
    border-width: 2px !important;
}
#dns-zones-view .stat-card {
    transition: transform 0.2s;
}

#dns-zones-view .stat-card:hover {
    transform: translateY(-2px);
}

#dns-zones-view .stat-card .card-body {
    padding: 1.25rem;
}

#dns-zones-view .stat-card h4 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

#dns-zones-view .sortable {
    position: relative;
    padding-right: 1.5rem;
}

#dns-zones-view .sortable i {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
}

#dns-zones-view .pagination {
    margin-bottom: 0;
}

#dns-zones-view .dropdown-toggle::after {
    display: none;
}

#dns-zones-view .zone-name {
    font-weight: 500;
}
