/* Star Flap Game - Frontend Styles */

/* Login Required */
.sf-login-required {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #0a0a1a, #1a1a2e);
    border-radius: 16px;
    margin: 20px 0;
}
.sf-login-box h3 {
    color: #ffd700;
    font-size: 24px;
    margin-bottom: 10px;
}
.sf-login-box p {
    color: #aaa;
    margin-bottom: 20px;
}

/* Buttons */
.sf-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    margin: 5px;
}
.sf-btn-primary {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
}
.sf-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}
.sf-btn-secondary {
    background: #333;
    color: #fff;
}
.sf-btn-secondary:hover {
    background: #444;
}
.sf-btn-danger {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: #fff;
}

/* Game Wrapper */
.sf-game-wrapper {
    max-width: 520px;
    margin: 0 auto;
}
.sf-game-info-bar {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(135deg, #0a0a1a, #1a1a2e);
    border-radius: 12px;
    margin-bottom: 10px;
    color: #fff;
    font-size: 16px;
}
.sf-game-info-bar strong {
    color: #ffd700;
}

/* Dashboard */
.sf-dashboard {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}
.sf-dashboard-header h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 20px;
}

/* Stats Row */
.sf-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}
.sf-stat-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.sf-stat-value {
    font-size: 28px;
    font-weight: 900;
    color: #333;
}
.sf-stat-value.sf-gold { color: #ff8c00; }
.sf-stat-value.sf-green { color: #22c55e; }
.sf-stat-value.sf-red { color: #ef4444; }
.sf-stat-title {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Dashboard Actions */
.sf-dashboard-actions {
    margin-bottom: 30px;
}

/* Inline Forms */
.sf-inline-form {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}
.sf-inline-form h3 {
    margin-top: 0;
    color: #333;
}

/* Form Elements */
.sf-form-group {
    margin-bottom: 15px;
}
.sf-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
}
.sf-input {
    width: 100%;
    max-width: 300px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}
.sf-textarea {
    width: 100%;
    max-width: 400px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 60px;
    box-sizing: border-box;
}

/* Messages */
.sf-message .sf-success {
    color: #22c55e;
    background: #f0fdf4;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid #bbf7d0;
}
.sf-message .sf-error {
    color: #ef4444;
    background: #fef2f2;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid #fecaca;
}

/* Tables */
.sf-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
}
.sf-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 700;
    color: #555;
    border-bottom: 2px solid #e0e0e0;
}
.sf-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}
.sf-table tr:hover td {
    background: #fafafa;
}

/* Status Badges */
.sf-status-completed { color: #22c55e; font-weight: 700; }
.sf-status-pending { color: #f59e0b; font-weight: 700; }
.sf-status-rejected { color: #ef4444; font-weight: 700; }

/* Colors */
.sf-green { color: #22c55e; font-weight: 700; }
.sf-red { color: #ef4444; font-weight: 700; }

/* Filter Bar */
.sf-filter-bar {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sf-filter-btn {
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 20px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}
.sf-filter-btn:hover, .sf-filter-btn.active {
    background: #ffd700;
    color: #000;
}

/* Pagination */
.sf-pagination {
    margin-top: 20px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.sf-page-btn {
    padding: 8px 14px;
    background: #f0f0f0;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
}
.sf-page-btn.active {
    background: #ffd700;
    color: #000;
}

/* Form Card */
.sf-form-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.sf-form-card h3 {
    margin-top: 0;
    color: #333;
}

/* Current Balance */
.sf-current-balance {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}
.sf-current-balance strong {
    color: #ff8c00;
    font-size: 24px;
}

/* Pending Section */
.sf-pending-section {
    margin-top: 30px;
}
.sf-pending-section h3 {
    color: #f59e0b;
}

/* User Info */
.sf-user-info {
    margin-top: 30px;
}
.sf-info-table td {
    padding: 8px 15px;
}

/* No Data */
.sf-no-data {
    color: #888;
    text-align: center;
    padding: 30px;
    font-style: italic;
}

/* Responsive */
@media (max-width: 600px) {
    .sf-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .sf-table {
        font-size: 12px;
    }
    .sf-table th, .sf-table td {
        padding: 8px 10px;
    }
    .sf-game-info-bar {
        font-size: 14px;
    }
}
