/* =================================
   FRONTEND STYLES - Blue Modern UI
   ================================= */

body {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%) !important;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.fcs-frontend {
    max-width: 1400px;
    margin: 40px auto;
    padding: 20px;
}

/* Upload Section - Top Bar */
.fcs-upload {
    background: transparent;
    padding: 0;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.upload-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.upload-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.counter-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 12px 20px;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.counter-badge span {
    font-size: 16px;
}

/* Upload Button */
#fcs-file {
    display: none;
}

#fcs-upload-btn {
    padding: 15px 35px;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

#fcs-upload-btn:before {
    content: "🔒";
    font-size: 18px;
}

#fcs-upload-btn:not(:disabled):before {
    content: "⬆";
}

#fcs-upload-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

#fcs-upload-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Cooldown Display */
.cooldown-display {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    font-weight: 700;
}

.cooldown-label {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#countdown-timer, #daily-reset-timer {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#fcs-msg {
    margin-top: 15px;
    font-weight: 600;
    font-size: 16px;
    color: white;
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* Files Card */
.fcs-files {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.fcs-files h3 {
    margin: 0 0 30px 0;
    font-size: 28px;
    color: #2d3748;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.fcs-files h3:before {
    content: "📁";
    margin-right: 15px;
    font-size: 32px;
}

/* Table */
.fcs-files table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 0;
}

.fcs-files thead {
    background: linear-gradient(135deg, #7B68EE 0%, #6A5ACD 100%);
}

.fcs-files th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    border: none;
    color: white;
    font-size: 15px;
    text-transform: none;
    letter-spacing: 0.3px;
}

.fcs-files th:first-child {
    border-top-left-radius: 12px;
}

.fcs-files th:last-child {
    border-top-right-radius: 12px;
}

.fcs-files td {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    color: #2d3748;
    font-size: 15px;
}

.fcs-files tbody tr {
    background: white;
    transition: all 0.2s ease;
}

.fcs-files tbody tr:hover {
    background: #f7fafc;
}

.fcs-files tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.fcs-files tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

/* Status Badges */
.status-processing {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    color: #2d3436;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.status-completed {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
}

.status-completed:before {
    content: "✓";
    font-size: 14px;
}

/* Percentage Badge */
.percent {
    display: inline-block;
    padding: 6px 14px;
    background: #667eea;
    color: white;
    border-radius: 15px;
    font-weight: 700;
    font-size: 14px;
    margin-right: 10px;
}

/* Download Link */
.download-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border: 2px solid #667eea;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.download-link:before {
    content: "📥";
    font-size: 14px;
}

.download-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Delete Button */
.delete-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.delete-btn:before {
    content: "🗑️";
    font-size: 14px;
}

.delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* No Files Message */
.no-files {
    text-align: center;
    color: #a0aec0;
    font-style: italic;
    padding: 60px 20px !important;
    font-size: 16px;
}

/* File Name Bold */
.fcs-files td strong {
    font-weight: 700;
    color: #2d3748;
    font-size: 15px;
}

/* No Limit Message */
.no-limit-message {
    text-align: center;
    padding: 40px;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    margin-top: 20px;
}

.no-limit-message h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.no-limit-message p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .fcs-frontend {
        padding: 15px;
        margin: 20px auto;
    }
    
    .fcs-upload {
        flex-direction: column;
        gap: 15px;
    }
    
    .upload-left, .upload-right {
        width: 100%;
        justify-content: center;
    }
    
    .upload-right {
        flex-wrap: wrap;
    }
    
    .cooldown-display {
        flex-direction: column;
        text-align: center;
    }
    
    .fcs-files {
        padding: 25px 15px;
        border-radius: 15px;
    }
    
    .fcs-files h3 {
        font-size: 22px;
    }
    
    .fcs-files table {
        font-size: 13px;
        display: block;
        overflow-x: auto;
    }
    
    .fcs-files th,
    .fcs-files td {
        padding: 12px 10px;
    }
    
    #fcs-upload-btn {
        width: 100%;
        padding: 15px;
        justify-content: center;
    }
    
    .download-link,
    .delete-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}
