/* Jeff's Architecture - Skin Components
   File: skins/default/css/components.css
*/

/* --- 1. BUTTONS --- */
/* Base Button Class */
.app-btn, .cta-button, .submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    background-color: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1;
}

.app-btn:hover {
    background-color: var(--bg-surface-2);
    border-color: var(--text-muted);
    color: var(--text-main);
}

/* Primary Action */
.app-btn-primary, .submit-button, .cta-button {
    background-color: var(--primary);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-xs);
}

.app-btn-primary:hover, .submit-button:hover, .cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    color: white;
}

/* Grouping (Used in Admin Actions) */
.action-btn-group {
    display: flex;
    gap: 0.5rem;
}

/* --- 2. CARDS & DATA LISTS --- */
/* Standard Card */
.dashboard-card, .data-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-card);
    transition: border-color 0.2s;
}

/* Data List Row (Flexbox Table Replacement) */
.data-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.data-card:hover {
    border-color: var(--primary);
}

.data-col {
    display: flex;
    flex-direction: column;
}

.data-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* --- 3. FORMS --- */
/* Layout Grid */
.app-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.app-form-group {
    margin-bottom: 1rem;
}

.app-form-label, .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Inputs */
.app-form-input, 
input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="number"], 
select, 
textarea {
    width: 100%;
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Code Snippet Box (Affiliates/Dev) */
.code-snippet-box {
    font-family: monospace;
    background-color: #0d1117;
    color: #c9d1d9;
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    width: 100%;
    resize: none;
    height: auto;
    min-height: 100px;
}

/* --- 4. BADGES --- */
.status-badge {
    display: inline-block;
    padding: 0.25em 0.7em;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Contextual Colors */
.status-paid, .status-active, .status-approved {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-unpaid, .status-pending, .status-banned {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-neutral, .status-closed {
    background-color: var(--bg-surface-2);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* --- 5. ADMIN SIDEBAR LINKS --- */
.app-menu-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    text-decoration: none;
}

.app-menu-link svg {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    fill: currentColor;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.app-menu-link:hover {
    background-color: var(--bg-surface-2);
    color: var(--text-main);
}

.app-menu-link:hover svg {
    opacity: 1;
}

.app-menu-link.active {
    background-color: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
}

.app-menu-link.active svg {
    opacity: 1;
    fill: var(--primary);
}