/* Main styles for Square Game Fundraiser */

:root {
    --primary-color: #007bff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Grid Styles */
.grid-container {
    overflow-x: auto;
    margin: 20px 0;
}

.grid-table {
    border-collapse: separate;
    border-spacing: 2px;
}

.grid-square {
    position: relative;
    padding: 5px;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    transition: all 0.3s ease;
}

.grid-square:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    z-index: 10;
}

.grid-square.sold {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.grid-square.available {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.square-number {
    position: absolute;
    top: 2px;
    left: 5px;
    font-size: 10px;
    font-weight: bold;
    color: #666;
}

.animal-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    margin: 5px auto;
    display: block;
}

.no-image {
    width: 60px;
    height: 60px;
    margin: 5px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    border-radius: 50%;
    color: #6c757d;
    font-size: 24px;
}

/* Admin Grid Styles */
.admin-grid .grid-square {
    min-width: 120px;
    min-height: 120px;
}

.admin-grid .grid-square:hover {
    border: 2px solid var(--primary-color);
}

/* Card Hover Effects */
.hover-shadow {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

/* Progress Bar Enhancements */
.progress {
    background-color: #e9ecef;
}

.progress-bar {
    font-weight: bold;
    font-size: 14px;
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .grid-square {
        min-width: 80px;
        min-height: 80px;
    }
    
    .animal-thumbnail {
        width: 40px;
        height: 40px;
    }
    
    .no-image {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Print Styles */
@media print {
    .navbar, 
    footer, 
    .btn, 
    .alert-dismissible,
    .no-print {
        display: none !important;
    }
    
    .grid-table {
        page-break-inside: avoid;
    }
    
    .grid-square {
        border: 1px solid #000 !important;
    }
}

/* Loading Spinner */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
} 