/* ===========================================
   CCBready - App/Dashboard Styles
   Projects, Requirements, Notices, Billing
   =========================================== */

/* ----- Project Cards ----- */
.project-card {
    cursor: pointer;
    transition: all var(--transition);
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.project-stats {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* ----- Requirements Checklist ----- */
.requirement-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
}

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

.requirement-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 0.75rem;
}

.requirement-check:hover {
    border-color: var(--primary);
    background: var(--primary-50);
}

.requirement-check.checked {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

.requirement-check.overdue {
    border-color: var(--danger);
    background: var(--danger-light);
}

.requirement-content {
    flex: 1;
}

.requirement-title {
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 0.125rem;
}

.requirement-desc {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.requirement-due {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 0.25rem;
}

.requirement-due.overdue {
    color: var(--danger);
    font-weight: 500;
}

/* ----- Notice Cards ----- */
.notice-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.notice-item:hover {
    border-color: var(--gray-300);
}

.notice-item.warning {
    background: var(--danger-light);
    border-color: #fecaca;
}

.notice-info {
    flex: 1;
}

.notice-info strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--gray-800);
}

.notice-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.notice-actions {
    display: flex;
    gap: 0.5rem;
}

/* ----- File Upload ----- */
.file-upload {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--gray-50);
}

.file-upload:hover {
    border-color: var(--primary);
    background: var(--primary-50);
}

.file-upload-input {
    display: none;
}

.file-upload-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--gray-400);
}

.file-upload-text {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.file-upload-hint {
    color: var(--gray-400);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.file-list {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0.875rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* ----- Billing/Plans ----- */
.billing-plans {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.billing-plan {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--white);
}

.billing-plan:hover {
    border-color: var(--primary-200);
    background: var(--primary-50);
}

.billing-plan.featured {
    border-color: var(--primary);
    background: var(--primary-50);
}

.billing-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.billing-plan-name {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--gray-900);
}

.billing-plan-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.billing-plan-price span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gray-500);
}

.billing-plan-features {
    list-style: none;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.billing-plan-features li {
    padding: 0.25rem 0;
}

.billing-plan-features li::before {
    content: "✓ ";
    color: var(--primary);
    font-weight: 600;
}

.billing-current {
    background: var(--primary-50);
    border: 1px solid var(--primary-200);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

/* ----- Signature Status ----- */
.signature-status {
    display: inline-block;
    margin-top: 0.25rem;
}

/* ----- Customer/Client Cards ----- */
.customer-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.customer-card .name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.customer-card .email {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.customer-card .actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.customer-projects {
    margin: 0.75rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.customer-projects strong {
    color: var(--gray-600);
}

.project-link {
    color: var(--primary);
    text-decoration: none;
}

.project-link:hover {
    text-decoration: underline;
}

.customer-meta {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ----- Dashboard Tabs ----- */
.dashboard-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--gray-500);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all var(--transition);
}

.tab-btn:hover {
    color: var(--gray-700);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

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

/* ----- Stats Cards ----- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}
