@font-face {
    font-family: 'radar';
    src: url('../fonts/radar.woff') format('woff');
    font-style: normal;
}

@font-face {
    font-family: 'radar2';
    src: url('../fonts/radar2.woff') format('woff');
    font-style: normal;
}

@font-face {
    font-family: 'radar3';
    src: url('../fonts/radar3.woff') format('woff');
    font-style: normal;
}

.rn-container {
    max-width: 1500px;
    margin: 30px auto;
    font-family: 'radar2', sans-serif;
    background: #ffffff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 20, 60, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.rn-title {
    font-size: 34px;
    color: #00143c;
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(212, 175, 55, 0.2);
}

.rn-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #00143c 0%, #002060 100%);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 20, 60, 1);
    white-space: nowrap;
}

.rn-tab {
    padding: 12px 15px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    margin: 3px;
}

.rn-tab:hover {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.rn-tab.active {
    color: #00143c;
    font-weight: 700;
    background: linear-gradient(135deg, #d4af37 0%, #e6c84f 100%);
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.5);
    transform: translateY(-3px);
}

.rn-tab.active:after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 50%;
    height: 2px;
    background: #d4af37;
    transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

.rn-tab i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.rn-tab:hover i {
    transform: scale(1.15);
}

.rn-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 20, 60, 0.08);
    margin-bottom: 25px;
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.rn-card h2 {
    font-size: 22px;
    color: #00143c;
    margin-bottom: 15px;
    font-weight: 600;
    font-family: 'radar', sans-serif;
}

.rn-card h2 i {
    margin-left: 10px;
    color: #00143c;
}

.rn-form label {
    display: block;
    margin: 12px 0 6px;
    font-weight: 600;
    color: #00143c;
    font-size: 14px;
}

.rn-form label i {
    margin-left: 8px;
    color: #00143c;
}

.rn-form input[type="text"],
.rn-form input[type="url"],
.rn-form input[type="tel"],
.rn-form input[type="password"],
.rn-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 20, 60, 0.2);
    border-radius: 6px;
    margin-bottom: 15px;
    background: #ffffff;
    color: #00143c;
    transition: all 0.3s ease;
    font-family: 'radar2', sans-serif;
}

.rn-form input[readonly],
.rn-form textarea[readonly] {
    background: #e9ecef;
    color: #666;
    border-color: rgba(0, 20, 60, 0.15);
    cursor: not-allowed;
    opacity: 0.85;
}

.rn-form input[readonly]:focus,
.rn-form textarea[readonly]:focus {
    border-color: rgba(0, 20, 60, 0.15);
    box-shadow: none;
    outline: none;
}

.rn-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 20, 60, 0.2);
    border-radius: 6px;
    background: #ffffff;
    color: #00143c;
    transition: all 0.3s ease;
    font-family: 'radar2', sans-serif;
}

.rn-form input[type="text"]:focus,
.rn-form input[type="url"]:focus,
.rn-form input[type="tel"]:focus,
.rn-form input[type="password"]:focus,
.rn-form textarea:focus,
.rn-form select:focus {
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    outline: none;
}

.rn-form input[type="checkbox"] {
    margin-left: 12px;
    accent-color: #d4af37;
}

.rn-button {
    background: linear-gradient(135deg, #00143c 0%, #002060 100%);
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'radar3', sans-serif;
    font-weight: 700;
    font-size: 14px;
}

.rn-button:hover {
    background: linear-gradient(135deg, #002060 0%, #00143c 100%);
    box-shadow: 0 5px 15px rgba(0, 20, 60, 0.5);
    transform: translateY(-2px);
}

.rn-button.rn-button-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #ffffff;
    border: 1px solid #dc3545;
}

.rn-button.rn-button-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.5);
    transform: translateY(-2px);
}

.rn-button.rn-button-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border: 1px solid #f59e0b;
}

.rn-button.rn-button-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.5);
    transform: translateY(-2px);
}

.rn-subtabs ul {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    display: flex;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.rn-subtabs li {
    margin-left: 15px;
}

.rn-subtabs a {
    display: inline-block;
    padding: 12px 20px;
    color: #00143c;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'radar2', sans-serif;
    border-radius: 6px 6px 0 0;
    font-size: 15px;
}

.rn-subtabs a.active {
    background: #d4af37;
    color: #00143c;
    font-weight: 700;
}

.rn-subtabs a:hover {
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
}

.rn-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    color: #00143c;
}

.rn-table th,
.rn-table td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 20, 60, 0.1);
    font-family: 'radar2', sans-serif;
}

.rn-table th {
    background: #f1f3f5;
    font-weight: 700;
    color: #00143c;
    font-size: 14px;
}

.rn-footer {
    margin-top: 30px;
    color: #666;
}

.rn-notice-success,
.rn-notice-error,
.rn-notice-warning,
.rn-notice-info {
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 14px;
    color: #00143c;
    font-family: 'radar2', sans-serif;
    box-shadow: 0 2px 6px rgba(0, 20, 60, 0.05);
    direction: ltr;
    background: #f8f9fa;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.rn-notice-success {
    background: #e8f0fe;
    border-left: 4px solid #00143c;
}

.rn-notice-error {
    background: #ffeef0;
    border-left: 4px solid #d32f2f;
}

.rn-notice-warning {
    background: #fff4e5;
    border-left: 4px solid #f57c00;
}

.rn-notice-info {
    background: #f0f4ff;
    border-left: 4px solid #1976d2;
}

.rn-notice-success p,
.rn-notice-error p,
.rn-notice-warning p,
.rn-notice-info p {
    margin: 0;
}

.rn-notice-info i {
    margin-right: 8px;
    color: #1976d2;
}

.rn-animated-notice {
    animation: slideIn 0.5s ease-in-out;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#rn-notices {
    margin: 20px 0;
    font-family: 'radar2', sans-serif;
    direction: ltr;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 6px 20px rgba(0, 20, 60, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.rn-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.rn-stat-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.rn-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 20, 60, 0.15);
}

.rn-stat-item strong {
    display: block;
    font-size: 24px;
    color: #2563eb;
    margin-bottom: 5px;
    font-weight: 700;
}

.rn-stat-item span {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Badges */
.rn-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.rn-badge-primary {
    background: #2563eb;
    color: #fff;
}

.rn-badge-warning {
    background: #f59e0b;
    color: #fff;
}

.rn-badge-success {
    background: #10b981;
    color: #fff;
}

.rn-badge-danger {
    background: #ef4444;
    color: #fff;
}

.rn-badge-light {
    background: #f3f4f6;
    color: #6b7280;
}

/* Banner status indicators */
.banner-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}

.banner-active {
    background-color: #10b981;
}

.banner-inactive {
    background-color: #ef4444;
}

.banner-taken {
    background-color: #f59e0b; /* orange */
}

/* Notifications */
.rn-notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    width: 300px;
}

.rn-notification {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    overflow: hidden;
    animation: slide-in 0.3s ease-out forwards;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-left: 4px solid #00143c;
}

.rn-notification-success {
    border-left-color: #10b981;
}

.rn-notification-error {
    border-left-color: #ef4444;
}

.rn-notification-warning {
    border-left-color: #f59e0b;
}

.rn-notification-content {
    display: flex;
    align-items: center;
}

.rn-notification-content i {
    margin-right: 10px;
    font-size: 18px;
}

.rn-notification-success i {
    color: #10b981;
}

.rn-notification-error i {
    color: #ef4444;
}

.rn-notification-warning i {
    color: #f59e0b;
}

.rn-notification-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    margin-left: 10px;
}

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

/* Highlight rows with active banners */
.active-banner-row {
    background-color: rgba(16, 185, 129, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .rn-tabs {
        flex-wrap: wrap;
        padding: 5px;
        border-radius: 10px;
    }
    .rn-tab {
        flex: 1 0 33%;
        text-align: center;
        padding: 6px 12px;
        margin: 2px;
    }
    .rn-tab.active:after {
        width: 35%;
    }
    .rn-subtabs ul {
        flex-direction: column;
    }
    .rn-subtabs li {
        margin-bottom: 12px;
    }
    .rn-container {
        margin: 20px;
        padding: 20px;
    }
}

/* Stats Grid */
.rn-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.rn-stat-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.rn-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 20, 60, 0.1);
}

.rn-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #00143c;
    margin-bottom: 5px;
}

.rn-stat-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Danger button styling */
.rn-button-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.rn-button-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    color: white;
}

/* Special tab styles for integrated navigation */
.rn-tab-brand {
    background: linear-gradient(135deg, #00143c 0%, #002060 100%);
    font-weight: 700;
    font-size: 16px;
    color: #d4af37 !important;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.rn-tab-brand:hover {
    background: linear-gradient(135deg, #002060 0%, #003080 100%);
    color: #e6c84f !important;
    border-color: rgba(212, 175, 55, 0.5);
}

.rn-tab-user {
    background: rgba(212, 175, 55, 0.1);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    text-decoration: none;
}

.rn-tab-user:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
    color: #ffffff;
    text-decoration: none;
}

.rn-tab-logout {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.rn-tab-logout:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.4);
}

.rn-badge {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 5px;
}

.rn-badge.bg-primary { background-color: #007bff !important; }
.rn-badge.bg-success { background-color: #28a745 !important; }
.rn-badge.bg-warning { background-color: #ffc107 !important; color: #000 !important; }
.rn-badge.bg-info { background-color: #17a2b8 !important; }

/* Form styling for unified design */
.rn-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

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

.rn-label {
    font-weight: 600;
    color: #00143c;
    margin-bottom: 5px;
    font-size: 14px;
}

.rn-input, .rn-select {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.rn-input:focus, .rn-select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.rn-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.rn-form-text {
    color: #666;
    font-size: 12px;
    display: block;
}

.rn-notice-container {
    display: none;
    margin-top: 20px;
}

.rn-button-full {
    width: 100%;
}

.rn-form-actions-center {
    text-align: center;
    margin-top: 15px;
}

/* Tab Content Styling */
.rn-tab-content {
    display: none;
    padding: 20px 0;
}

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

.rn-tab-content h3 {
    font-size: 18px;
    color: #00143c;
    margin-bottom: 10px;
    font-weight: 600;
    font-family: 'radar', sans-serif;
}

.rn-tab-content h3 i {
    margin-left: 8px;
    color: #00143c;
}

.rn-button-secondary {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
}

.rn-button-secondary:hover {
    background: #5a6268;
    border-color: #545b62;
    color: white;
}

/* Table styling for unified design */
.rn-table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

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

.rn-table thead {
    background: linear-gradient(135deg, #00143c 0%, #002060 100%);
    color: white;
}

.rn-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 2px solid #d4af37;
}

.rn-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.rn-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

/* Pagination styling */
.rn-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
}

.rn-pagination .page-link {
    padding: 8px 12px;
    border: 1px solid #d4af37;
    color: #00143c;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.rn-pagination .page-link:hover {
    background: #d4af37;
    color: white;
}

.rn-pagination .page-link.active {
    background: #d4af37;
    color: white;
    border-color: #d4af37;
}

/* Spinner styling */
.rn-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    color: #6c757d;
    font-size: 14px;
}

.rn-spinner i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Spinning animation for refresh buttons */
.spin {
    animation: spin 1s linear infinite;
}

/* Stats Grid Styling */
.rn-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.rn-stat-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.rn-stat-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border-color: #d4af37;
}

.rn-stat-icon {
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 10px;
}

.rn-stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
}

/* Form Row Styling */
.rn-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

/* Compact Filter Section */
.rn-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #00143c;
}

.rn-form-group {
    margin-bottom: 10px;
}

.rn-form-group .rn-label {
    font-size: 13px;
    margin-bottom: 5px;
}

.rn-form-group .rn-input {
    padding: 8px 12px;
    font-size: 13px;
}

.rn-form-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

/* Button Small Styling */
.rn-button-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
}

/* Keep original table styling for readability */

/* Pagination Styling */
.rn-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
}

.rn-pagination-info {
    color: #666;
    font-size: 14px;
}

.rn-pagination-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rn-pagination-ellipsis {
    padding: 0 8px;
    color: #999;
    font-size: 14px;
}