/* ============================================
   DASHBOARD ACCOUNT - Premium Styles
   Design inspire: FreshBooks, QuickBooks, Stripe
   ============================================ */

/* ============================================
   DASHBOARD HEADER
   ============================================ */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    gap: 20px;
}

.dashboard-header__welcome {
    flex: 1;
}

.dashboard-header__title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
    line-height: 1.3;
}

.dashboard-header__subtitle {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

.dashboard-header__date {
    text-align: right;
    flex-shrink: 0;
}

.dashboard-header__day {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-header__full-date {
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-top: 2px;
}

/* ============================================
   KPI (uses shared styles from company.css)
   ============================================ */
@media (max-width: 640px) {
    .dashboard-header {
        flex-direction: column;
        gap: 16px;
    }

    .dashboard-header__date {
        text-align: left;
    }
}

/* ============================================
   DASHBOARD SECTIONS LAYOUT
   ============================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   DASHBOARD SECTION CARD
   ============================================ */
.dashboard-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 24px;
}

.dashboard-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-section__title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.dashboard-section__badge {
    font-size: 12px;
    font-weight: 600;
    color: #7c3aed;
    background: #ede9fe;
    padding: 4px 12px;
    border-radius: 9999px;
}

.dashboard-section__link {
    font-size: 14px;
    font-weight: 500;
    color: #7c3aed;
    text-decoration: none;
    transition: color 0.2s ease;
}

.dashboard-section__link:hover {
    color: #6d28d9;
}

/* ============================================
   COMPANY LIST (Dashboard)
   ============================================ */
.company-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.company-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.company-list-item:hover {
    border-color: #c4b5fd;
    background: #faf5ff;
}

.company-list-item__avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.company-list-item__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-list-item__avatar svg {
    width: 24px;
    height: 24px;
    color: #7c3aed;
}

.company-list-item__initials {
    font-size: 16px;
    font-weight: 700;
    color: #7c3aed;
}

.company-list-item__content {
    flex: 1;
    min-width: 0;
}

.company-list-item__name {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-list-item__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #6b7280;
}

.company-list-item__location {
    display: flex;
    align-items: center;
    gap: 4px;
}

.company-list-item__location svg {
    width: 14px;
    height: 14px;
    color: #9ca3af;
}

.company-list-item__status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 9999px;
}

.company-list-item__status--active {
    background: #d1fae5;
    color: #059669;
}

.company-list-item__status--inactive {
    background: #fee2e2;
    color: #dc2626;
}

.company-list-item__status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.company-list-item__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.company-list-item__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.25);
}

.company-list-item__btn:hover {
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.35);
    transform: translateY(-1px);
    color: #ffffff;
}

.company-list-item__btn svg {
    width: 14px;
    height: 14px;
}

.company-list-item__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #9ca3af;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.company-list-item__menu:hover {
    background: #f3f4f6;
    color: #6b7280;
}

.company-list-item__menu svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   CREATE COMPANY CARD
   ============================================ */
.create-company-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.create-company-card:hover {
    border-color: #7c3aed;
    background: #faf5ff;
}

.create-company-card__icon {
    width: 56px;
    height: 56px;
    background: #ede9fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.create-company-card__icon svg {
    width: 24px;
    height: 24px;
    color: #7c3aed;
}

.create-company-card__title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px;
}

.create-company-card__desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/* ============================================
   QUICK ACTIONS
   ============================================ */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.quick-action:hover {
    border-color: #c4b5fd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.quick-action__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.quick-action__icon svg {
    width: 20px;
    height: 20px;
}

.quick-action__icon--purple {
    background: #ede9fe;
    color: #7c3aed;
}

.quick-action__icon--green {
    background: #d1fae5;
    color: #059669;
}

.quick-action__icon--orange {
    background: #fef3c7;
    color: #d97706;
}

.quick-action__icon--gray {
    background: #f3f4f6;
    color: #6b7280;
}

.quick-action__content {
    flex: 1;
    min-width: 0;
}

.quick-action__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.quick-action__desc {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.quick-action__arrow {
    color: #d1d5db;
    transition: all 0.2s ease;
}

.quick-action__arrow svg {
    width: 16px;
    height: 16px;
}

.quick-action:hover .quick-action__arrow {
    color: #7c3aed;
    transform: translateX(4px);
}

/* ============================================
   SUBSCRIPTION CARD
   ============================================ */
.subscription-card {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    border-radius: 0.5rem;
    padding: 24px;
    color: #ffffff;
}

.subscription-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.subscription-card__plan {
    font-size: 20px;
    font-weight: 700;
}

.subscription-card__status {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.2);
}

.subscription-card__details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.subscription-card__item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    align-items: center;
    gap: 12px;
}

.subscription-card__item-label {
    font-size: 13px;
    opacity: 0.9;
}

.subscription-card__progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.subscription-card__progress-bar {
    height: 100%;
    background: #ffffff;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.subscription-card__progress-bar--warning {
    background: #fde68a;
}

.subscription-card__item-value {
    font-size: 13px;
    font-weight: 600;
    min-width: 70px;
    text-align: right;
}

.subscription-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.subscription-card__renewal {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    opacity: 0.9;
}

.subscription-card__renewal svg {
    width: 14px;
    height: 14px;
}

.subscription-card__upgrade {
    padding: 8px 16px;
    background: #ffffff;
    color: #7c3aed;
    font-size: 13px;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.subscription-card__upgrade:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
}

/* ============================================
   ACTIVITY TIMELINE
   ============================================ */
.activity-timeline {
    display: flex;
    flex-direction: column;
}

.activity-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.activity-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.activity-item__icon svg {
    width: 16px;
    height: 16px;
}

.activity-item__icon--purple {
    background: #ede9fe;
    color: #7c3aed;
}

.activity-item__icon--green {
    background: #d1fae5;
    color: #059669;
}

.activity-item__icon--blue {
    background: #dbeafe;
    color: #2563eb;
}

.activity-item__content {
    flex: 1;
}

.activity-item__text {
    font-size: 14px;
    color: #374151;
    margin: 0 0 4px;
}

.activity-item__text strong {
    color: #111827;
}

.activity-item__time {
    font-size: 12px;
    color: #9ca3af;
}

/* Empty state */
.activity-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    color: #9ca3af;
    text-align: center;
}

.activity-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.activity-empty p {
    margin: 0;
    font-size: 14px;
}

/* ============================================
   SIDEBAR COLUMN
   ============================================ */
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .quick-action,
    .company-list-item {
        animation: none;
        transition: none;
    }
}
