/**
 * AOS App Shell Styles
 * SaaS-level dashboard UI for the AOS platform
 */

/* ===== APP CONTAINER ===== */
.aos-app-container {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
    overflow: hidden;
}

/* ===== SIDEBAR ===== */
.aos-sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    position: fixed;
    left: 0;
    top: 0;
    transition: transform 0.3s ease;
}

.aos-sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.aos-app-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #6366f1;
    letter-spacing: -0.5px;
}

.aos-app-subtitle {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ===== NAVIGATION ===== */
.aos-navigation-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 0;
}

.aos-navigation-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.aos-navigation-item {
    margin: 0;
}

.aos-navigation-link {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.aos-navigation-link:hover {
    background: #f8fafc;
    color: #1e293b;
}

.aos-navigation-link.aos-nav-link-active {
    background: #f1f5f9;
    color: #6366f1;
    border-left-color: #6366f1;
    font-weight: 600;
}

.aos-navigation-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.aos-navigation-text {
    flex: 1;
}

.aos-navigation-footer {
    padding: 16px 0;
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
}

.aos-logout-link {
    color: #ef4444;
}

.aos-logout-link:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* ===== MAIN CONTENT ===== */
.aos-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 260px;
    min-height: 100vh;
    overflow-y: auto;
    transition: margin-left 0.3s ease;
}

/* ===== TOP BAR ===== */
.aos-top-bar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
}

.aos-top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.aos-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    color: #1e293b;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.aos-menu-toggle:hover {
    background: #f1f5f9;
}

.aos-search {
    position: relative;
}

.aos-search-input {
    width: 320px;
    padding: 10px 16px 10px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: #f8fafc;
    color: #1e293b;
    transition: all 0.2s ease;
}

.aos-search-input:focus {
    outline: none;
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.aos-search-input::placeholder {
    color: #94a3b8;
}

.aos-top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.aos-artist-switcher {
    position: relative;
}

.aos-artist-select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    min-width: 160px;
    background: #ffffff;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.aos-artist-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.aos-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.aos-user-profile:hover {
    background: #f1f5f9;
}

.aos-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.aos-user-name {
    font-weight: 500;
    color: #1e293b;
    font-size: 14px;
}

/* ===== CONTENT AREA ===== */
.aos-content-area {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}

/* ===== FLOATING ACTION BUTTON ===== */
.aos-fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: #6366f1;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aos-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
    background: #4f46e5;
}

.aos-fab:active {
    transform: scale(0.95);
}

.aos-fab-menu {
    position: fixed;
    bottom: 100px;
    right: 32px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 200px;
    z-index: 99;
    border: 1px solid #e2e8f0;
}

.aos-fab-menu-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
}

.aos-fab-menu-item:hover {
    background: #f8fafc;
}

.aos-fab-menu-item:first-child {
    border-radius: 12px 12px 0 0;
}

.aos-fab-menu-item:last-child {
    border-radius: 0 0 12px 12px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .aos-sidebar {
        width: 240px;
    }

    .aos-main-content {
        margin-left: 240px;
    }

    .aos-content-area {
        padding: 24px;
    }

    .aos-search-input {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .aos-sidebar {
        transform: translateX(-100%);
    }

    .aos-sidebar.open {
        transform: translateX(0);
    }

    .aos-main-content {
        margin-left: 0;
    }

    .aos-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .aos-search-input {
        width: 200px;
    }

    .aos-content-area {
        padding: 20px 16px;
    }

    .aos-top-bar {
        padding: 12px 16px;
    }

    .aos-fab {
        bottom: 24px;
        right: 24px;
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .aos-fab-menu {
        bottom: 85px;
        right: 24px;
        min-width: 180px;
    }

    .aos-user-name {
        display: none;
    }
}

@media (max-width: 480px) {
    .aos-search {
        display: none;
    }

    .aos-artist-select {
        min-width: 120px;
    }

    .aos-top-bar-right {
        gap: 8px;
    }

    .aos-content-area {
        padding: 16px 12px;
    }

    .aos-fab {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
    }

    .aos-fab-menu {
        bottom: 75px;
        right: 16px;
    }
}

/* ===== OVERLAY FOR MOBILE ===== */
.aos-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
}

.aos-overlay.active {
    display: block;
}

@media (min-width: 769px) {
    .aos-overlay {
        display: none !important;
    }
}

/* ===== DASHBOARD SPECIFIC STYLES ===== */
.aos-dashboard-wrapper {
    padding: 0;
}

.aos-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.aos-dashboard-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
}

.aos-dashboard-section {
    margin-bottom: 32px;
}

.aos-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.aos-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.aos-dashboard-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.aos-dashboard-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

/* Success banner */
.aos-success-banner {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
}

/* Empty states in dashboard */
.aos-empty-state {
    text-align: center;
    padding: 32px 16px;
    color: #64748b;
    font-size: 14px;
}

.aos-empty-success {
    color: #10b981;
}

/* Deadline and priority badges */
.aos-item-deadline,
.aos-item-priority,
.aos-item-followup {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
}

.aos-deadline-urgent {
    background: #fee2e2;
    color: #dc2626;
}

.aos-deadline-warning {
    background: #fef3c7;
    color: #d97706;
}

.aos-deadline-normal {
    background: #f1f5f9;
    color: #64748b;
}

.aos-priority-danger {
    background: #fee2e2;
    color: #dc2626;
}

.aos-priority-warning {
    background: #fef3c7;
    color: #d97706;
}

.aos-priority-info {
    background: #dbeafe;
    color: #2563eb;
}

.aos-followup-urgent {
    background: #fee2e2;
    color: #dc2626;
}

.aos-followup-normal {
    background: #f1f5f9;
    color: #64748b;
}

/* Blocker tags */
.aos-blocker-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    background: #fee2e2;
    color: #dc2626;
    margin-top: 4px;
}

/* Item metadata */
.aos-item-meta {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.aos-item-meta-item {
    font-size: 12px;
    color: #64748b;
}

/* Activity list */
.aos-activity-list {
    font-size: 13px;
}

.aos-activity-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aos-activity-title {
    font-weight: 500;
    color: #1e293b;
}

.aos-activity-type {
    font-size: 12px;
    color: #64748b;
}

.aos-activity-time {
    font-size: 11px;
    color: #94a3b8;
}
