/* ============================================
   Colombo Canvas - Custom Styling
   ============================================ */

/* Root and General Styles */
:root {
    --primary-color: #1976d2;
    --secondary-color: #ffc107;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --info-color: #2196f3;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
}

main {
    flex: 1;
}

/* ============================================
   Header and Navigation
   ============================================ */

nav {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav ul li a {
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255,255,255,0.1);
}

.brand-logo {
    font-weight: 500;
    font-size: 1.3rem !important;
}

/* ============================================
   Layout and Containers
   ============================================ */

.container {
    max-width: 1200px;
}

.section {
    padding: 2rem 0;
}

/* ============================================
   Cards and Panels
   ============================================ */

.card {
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.card.hoverable:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.card-panel {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

.card-title {
    font-weight: 500;
    color: #333;
}

/* ============================================
   Artwork Image Placeholders
   ============================================ */

.artwork-img-placeholder {
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 300;
}

/* ============================================
   Forms and Inputs
   ============================================ */

.input-field {
    margin-bottom: 1.5rem;
}

.input-field label {
    font-size: 0.9rem;
    color: #999;
}

.input-field input:focus,
.input-field textarea:focus {
    border-bottom: 2px solid var(--primary-color);
}

.input-field input.valid,
.input-field textarea.valid {
    border-bottom: 1px solid var(--success-color);
}

.input-field input.invalid,
.input-field textarea.invalid {
    border-bottom: 1px solid var(--danger-color);
}

/* ============================================
   Buttons
   ============================================ */

.btn,
.btn-small,
.btn-flat {
    text-transform: none;
    font-weight: 500;
    border-radius: 2px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    background-color: #1565c0;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-flat:hover {
    background-color: rgba(0,0,0,0.05);
}

/* ============================================
   Chips
   ============================================ */

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0.25rem;
}

.chip.green.lighten-5 {
    background-color: #e8f5e9;
}

.chip.orange.lighten-4 {
    background-color: #ffe0b2;
}

.chip.red.lighten-4 {
    background-color: #ffebee;
}

.chip.grey.lighten-4 {
    background-color: #f5f5f5;
}

/* ============================================
   Status Indicators
   ============================================ */

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

/* ============================================
   Tables
   ============================================ */

table.striped tbody tr {
    border-bottom: 1px solid #ddd;
}

table.striped tbody tr:nth-child(odd) {
    background-color: #fafafa;
}

table.striped tbody tr:hover {
    background-color: #f5f5f5;
}

table thead tr {
    background-color: #f5f5f5;
    border-bottom: 2px solid #ddd;
}

/* ============================================
   Flash Messages and Alerts
   ============================================ */

.card-panel.red.lighten-4,
.alert-danger {
    background-color: #ffebee;
    border-left: 4px solid var(--danger-color);
}

.card-panel.green.lighten-4,
.alert-success {
    background-color: #e8f5e9;
    border-left: 4px solid var(--success-color);
}

.card-panel.orange.lighten-4,
.alert-warning {
    background-color: #fff3cd;
    border-left: 4px solid var(--warning-color);
}

.card-panel.blue.lighten-4,
.alert-info {
    background-color: #e3f2fd;
    border-left: 4px solid var(--info-color);
}

/* ============================================
   Dividers
   ============================================ */

.divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 1rem 0;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    color: #333;
    font-weight: 500;
}

.grey-text {
    color: #999;
}

.grey-text.text-darken-1 {
    color: #666;
}

.blue-text {
    color: var(--primary-color);
}

.green-text {
    color: var(--success-color);
}

.red-text {
    color: var(--danger-color);
}

.italic {
    font-style: italic;
}

/* ============================================
   Spacing Utilities
   ============================================ */

.row {
    margin-bottom: 1rem;
}

.collection {
    margin: 1rem 0;
    border: 1px solid #ddd;
    border-radius: 2px;
}

.collection-item {
    padding: 1rem;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: flex-start;
}

.collection-item:last-child {
    border-bottom: none;
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media only screen and (max-width: 600px) {
    .section {
        padding: 1rem 0;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .btn-small {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    table.striped {
        font-size: 0.85rem;
    }
    
    .chip {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
    }
}

/* ============================================
   Accessibility
   ============================================ */

a:focus,
button:focus,
.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    nav,
    .section > .row:first-child,
    .btn,
    .btn-flat {
        display: none;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

