/* =============================================
   Frontend Styles
   Location: assets/css/frontend-styles.css
   ============================================= */

.stp-frontend-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.stp-dashboard-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
}

.stp-dashboard-header h1 {
    margin: 0 0 10px;
    font-size: 32px;
}

.stp-tracking-id {
    font-size: 16px;
    margin: 10px 0;
}

.stp-tracking-id code {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
}

.stp-performance-badge {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255,255,255,0.3);
}

.stp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stp-stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stp-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.stp-stat-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.stp-stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #2271b1;
    margin-bottom: 5px;
}

.stp-stat-period {
    font-size: 12px;
    color: #999;
}

.stp-stat-progress {
    margin-top: 15px;
}

.stp-stat-progress .stp-progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.stp-stat-progress .stp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.5s ease;
}

.stp-stat-progress span {
    font-size: 12px;
    color: #666;
}

.stp-chart-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.stp-chart-container h2 {
    margin: 0 0 20px;
    font-size: 24px;
}

.stp-chart-container canvas {
    max-height: 400px;
}

.stp-period-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.stp-period-btn {
    padding: 8px 16px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.stp-period-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.stp-period-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
}

.stp-team-members {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.stp-team-members h2 {
    margin: 0 0 20px;
    font-size: 24px;
}

.stp-table {
    width: 100%;
    border-collapse: collapse;
}

.stp-table thead {
    background: #f5f5f5;
}

.stp-table th,
.stp-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.stp-table th {
    font-weight: 600;
    color: #333;
}

.stp-table tbody tr:hover {
    background: #f9f9f9;
}

.stp-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stp-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stp-form-row {
        grid-template-columns: 1fr;
    }
    
    .stp-dashboard-header h1 {
        font-size: 24px;
    }
    
    .stp-stat-value {
        font-size: 28px;
    }
    
    .stp-period-buttons {
        flex-wrap: wrap;
    }
    
    .stp-table {
        font-size: 14px;
    }
    
    .stp-table th,
    .stp-table td {
        padding: 8px;
    }
}

/* Notice styles */
.notice {
    padding: 12px;
    margin: 15px 0;
    border-left: 4px solid;
    border-radius: 4px;
}

.notice-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.notice-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.notice-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.notice-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}