/* Black and White Theme */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-primary: #000000;
    --text-secondary: #666666;
    --border-color: #e5e5e5;
}

/* Cards */
.apple-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
}

/* Inputs */
.apple-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.apple-input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.apple-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.apple-checkbox {
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.apple-checkbox:checked {
    background: #000;
    border-color: #000;
}

.apple-checkbox:checked::after {
    content: '✓';
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Buttons */
.apple-button {
    background: #000;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 980px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.apple-button:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.apple-button-outline {
    background: transparent;
    color: #000;
    border: 1px solid #000;
}

.apple-button-outline:hover {
    background: #f5f5f5;
}

/* Tables */
.apple-table {
    width: 100%;
    border-collapse: collapse;
}

.apple-table th {
    text-align: left;
    padding: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
}

.apple-table td {
    padding: 1rem;
    border-bottom: 1px solid #f5f5f5;
}

.apple-table tr:hover td {
    background: #fafafa;
}

/* Alerts */
.apple-alert {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 4px solid #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 0.5rem;
}

.apple-alert-success {
    border-left-color: var(--green-primary);
}

.apple-alert-error {
    border-left-color: #dc3545;
}

.apple-alert-warning {
    border-left-color: #ffc107;
}

/* Pagination */
.apple-pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.apple-pagination-item {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
}

.apple-pagination-item.active {
    background: #000;
    color: white;
    border-color: #000;
}

.apple-pagination-item:hover:not(.active) {
    background: #f5f5f5;
}