/* Atlas Site Styles - SmartAdmin Inspired */

/* ==========================================================================
   Page Structure
   ========================================================================== */

/* Breadcrumb */
.page-breadcrumb {
    padding: 0;
    margin: 0 0 0.5rem 0;
    background: transparent;
    font-size: 0.8125rem;
}

.page-breadcrumb .breadcrumb-item a {
    color: var(--rm-deep-teal);
    text-decoration: none;
}

.page-breadcrumb .breadcrumb-item a:hover {
    color: var(--rm-navy);
    text-decoration: underline;
}

.page-breadcrumb .breadcrumb-item.active {
    color: var(--rm-text-secondary);
}

.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--rm-text-disabled);
}

/* Subheader */
.subheader {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.subheader-title {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--rm-navy);
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.subheader-title small {
    display: block;
    width: 100%;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--rm-text-secondary);
    margin-top: 0.25rem;
}

.subheader-icon {
    color: var(--rm-deep-teal);
    font-size: 1.75rem !important;
}

.subheader-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ==========================================================================
   Panels (SmartAdmin Style)
   ========================================================================== */

.panel {
    background: var(--rm-surface);
    border-radius: var(--rm-radius-md);
    box-shadow: 0 1px 3px rgba(18, 31, 56, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.panel-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
    border-bottom: 1px solid var(--rm-sky);
    min-height: 3.5rem;
}

.panel-hdr h2 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--rm-navy);
    margin: 0;
}

.panel-hdr h2 .fw-300 {
    font-weight: 300;
    color: var(--rm-text-secondary);
}

.panel-toolbar {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.panel-container {
    display: none;
}

.panel-container.show {
    display: block;
}

.panel-content {
    padding: 1.25rem;
}

.panel-tag {
    font-size: 0.75rem;
    background: var(--rm-sky);
    color: var(--rm-text-secondary);
    padding: 0.125rem 0.5rem;
    border-radius: var(--rm-radius-sm);
    margin-left: 0.5rem;
}

/* Panel Button */
.btn-panel {
    padding: 0.25rem 0.5rem;
    color: var(--rm-text-secondary);
    background: transparent;
    border: none;
}

.btn-panel:hover {
    color: var(--rm-navy);
    background: var(--rm-sky);
}

/* ==========================================================================
   Cards
   ========================================================================== */

/* Dashboard Cards */
.dashboard-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(18, 31, 56, 0.15);
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--rm-navy);
}

.stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--rm-text-secondary);
    margin-top: 0.25rem;
}

/* Icon Stack */
.icon-stack {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--rm-sky);
    color: var(--rm-navy);
}

.icon-stack-lg {
    width: 3.5rem;
    height: 3.5rem;
}

.icon-stack-xl {
    width: 4.5rem;
    height: 4.5rem;
}

/* ==========================================================================
   Tables
   ========================================================================== */

.table-actions {
    white-space: nowrap;
}

.table-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.table-actions .btn .material-symbols-outlined {
    font-size: 1rem;
}

/* Profile Image in Tables */
.profile-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--rm-deep-teal);
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
}

.profile-image-sm {
    width: 2rem;
    height: 2rem;
}

.profile-image-md {
    width: 2.5rem;
    height: 2.5rem;
}

.profile-image-lg {
    width: 3rem;
    height: 3rem;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-group {
    margin-bottom: 1rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rm-sky);
    margin-top: 1.5rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-icon {
    padding: 0.375rem;
    line-height: 1;
}

.btn-icon .material-symbols-outlined {
    font-size: 1.25rem;
}

/* ==========================================================================
   Status Badges
   ========================================================================== */

.status-active {
    background-color: var(--rm-forest-green);
}

.status-inactive {
    background-color: var(--rm-text-disabled);
}

/* Status Dots */
.status {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--rm-text-disabled);
}

.status-success {
    background: var(--rm-forest-green);
}

.status-danger {
    background: var(--rm-tile);
}

.status-warning {
    background: #ffc107;
}

.status-sm {
    width: 0.375rem;
    height: 0.375rem;
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--rm-text-secondary);
}

.empty-state .material-symbols-outlined {
    font-size: 64px;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: var(--rm-navy);
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Coming Soon
   ========================================================================== */

.coming-soon {
    text-align: center;
    padding: 4rem 2rem;
}

.coming-soon .material-symbols-outlined {
    font-size: 80px;
    color: var(--rm-mint);
    margin-bottom: 1.5rem;
}

.coming-soon h2 {
    margin-bottom: 0.5rem;
}

.coming-soon p {
    color: var(--rm-text-secondary);
}

/* ==========================================================================
   Login Page
   ========================================================================== */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--rm-navy) 0%, var(--rm-deep-teal) 100%);
}

.login-card {
    width: 100%;
    max-width: 400px;
    border-radius: var(--rm-radius-lg);
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Error Pages
   ========================================================================== */

.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: var(--rm-sandstone);
}

.error-content {
    max-width: 500px;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--rm-navy);
    line-height: 1;
    margin: 0;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, var(--rm-navy) 0%, var(--rm-deep-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-title {
    font-size: 1.75rem;
    color: var(--rm-navy);
    margin: 1rem 0 0.5rem;
}

.error-message {
    color: var(--rm-text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================================================
   Permission Matrix
   ========================================================================== */

.permission-matrix .form-check {
    margin-bottom: 0;
}

/* ==========================================================================
   Icon Sizing
   ========================================================================== */

.fs-sm .material-symbols-outlined,
.material-symbols-outlined.fs-sm {
    font-size: 1rem;
}

.fs-lg .material-symbols-outlined,
.material-symbols-outlined.fs-lg {
    font-size: 1.5rem;
}

.fs-xl .material-symbols-outlined,
.material-symbols-outlined.fs-xl {
    font-size: 2rem;
}

.fs-xxl .material-symbols-outlined,
.material-symbols-outlined.fs-xxl {
    font-size: 3rem;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.fw-300 { font-weight: 300; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.text-rm-forest-green { color: var(--rm-forest-green) !important; }
.text-rm-mint { color: var(--rm-mint) !important; }

.bg-primary-100 { background-color: rgba(5, 69, 73, 0.1) !important; }
.bg-primary-300 { background-color: rgba(5, 69, 73, 0.3) !important; }
.bg-success-100 { background-color: rgba(33, 118, 85, 0.1) !important; }
.bg-danger-100 { background-color: rgba(255, 115, 80, 0.1) !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 767.98px) {
    .subheader {
        flex-direction: column;
        align-items: flex-start;
    }

    .subheader-title {
        font-size: 1.5rem;
    }

    .error-code {
        font-size: 5rem;
    }
}
