/* Custom styles for WOS Gift Codes */

body {
    background-color: #f8f9fa;
}

.navbar {
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.card {
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
    border: none;
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,.125);
}

.card-header .card-title {
    color: #495057;
    font-size: 1.1rem;
    font-weight: 500;
}

.table th {
    border-top: none;
    background-color: #f8f9fa;
}

.btn-danger {
    padding: .25rem .5rem;
    font-size: .875rem;
}

.alert {
    margin-bottom: 2rem;
}

/* Responsive table styles */
@media (max-width: 768px) {
    .table-responsive {
        margin-bottom: 0;
    }
    
    .card-body {
        padding: .75rem;
    }
}

/* Form styles */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Button hover effects */
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* Card hover effects */
.card:hover {
    transform: translateY(-2px);
    transition: transform .2s ease-in-out;
}

/* Voting styles */
.vote-stats {
    min-width: 150px;
}

.progress {
    height: 24px;
    margin-bottom: 5px;
    border-radius: 12px;
}

.progress-bar {
    font-weight: bold;
    font-size: 14px;
    line-height: 24px;
    min-width: 30px;
}

.vote-buttons {
    display: inline-flex;
    gap: 5px;
}

.vote-buttons .btn {
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: all 0.2s ease;
}

.vote-buttons .vote-success {
    border: 2px solid #28a745;
    color: #28a745;
}

.vote-buttons .vote-success:hover:not(:disabled) {
    background-color: #28a745;
    color: white;
}

.vote-buttons .vote-failure {
    border: 2px solid #dc3545;
    color: #dc3545;
}

.vote-buttons .vote-failure:hover:not(:disabled) {
    background-color: #dc3545;
    color: white;
}

.vote-buttons .btn i {
    font-size: 1.2rem;
}

.vote-buttons .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Progress bar colors */
.progress-bar.bg-danger {
    background-color: #dc3545 !important;
}

.progress-bar.bg-success {
    background-color: #28a745 !important;
}

/* Vote count styles */
.vote-stats small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.vote-stats small i {
    margin-right: 3px;
}

.vote-stats small i.fa-thumbs-up {
    color: #28a745;
}

.vote-stats small i.fa-thumbs-down {
    color: #dc3545;
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem;
    border-radius: 4px;
    color: #fff;
    max-width: 300px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease-in-out;
    z-index: 1000;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    background-color: #28a745;
}

.toast-error {
    background-color: #dc3545;
}

/* Add Font Awesome icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

/* Expired codes table styles */
.table-expired {
    opacity: 0.75;
}

.table-expired tr {
    background-color: #f8f9fa;
}

.table-expired .progress {
    background-color: #e9ecef;
}

.table-expired .progress-bar {
    opacity: 0.8;
}

.table-expired .text-muted {
    opacity: 0.9;
}

/* Calendar Styles */
.calendar-container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.calendar-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.calendar-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.month-section {
    margin-bottom: 40px;
    border-bottom: 3px solid #ecf0f1;
}

.month-section:last-child {
    border-bottom: none;
}

.month-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 1.8em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.month-header.february { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }
.month-header.march { background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%); }
.month-header.april { background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%); }
.month-header.may { background: linear-gradient(135deg, #27ae60 0%, #229954 100%); }
.month-header.june { background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%); }
.month-header.july { background: linear-gradient(135deg, #e67e22 0%, #d35400 100%); }
.month-header.august { background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%); }
.month-header.september { background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%); }
.month-header.october { background: linear-gradient(135deg, #d35400 0%, #e67e22 100%); }
.month-header.november { background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%); }
.month-header.december { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }

.week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #bdc3c7;
}

.day-header {
    background: #34495e;
    color: white;
    padding: 15px 10px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
}

.day-cell {
    background: white;
    min-height: 120px;
    padding: 10px;
    border: 1px solid #ecf0f1;
    position: relative;
}

.day-cell.weekend {
    background: #f8f9fa;
}

.day-number {
    font-weight: bold;
    font-size: 1.2em;
    color: #2c3e50;
    margin-bottom: 8px;
    padding: 5px 8px;
    background: #ecf0f1;
    border-radius: 50%;
    display: inline-block;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 20px;
}

.gift-code {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 8px 12px;
    margin: 3px 0;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

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

.gift-code.avatar-frame {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.gift-code.vip-package {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.gift-code.gift-code {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.gift-code.holiday {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.gift-code.update {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
}

.gift-code.social {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
}

.svs-day {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
    border: 3px solid #ff4757 !important;
    position: relative;
}

.svs-label {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff4757;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

.code-tooltip {
    position: absolute;
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.8em;
    z-index: 1000;
    max-width: 300px;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.legend {
    background: #ecf0f1;
    padding: 20px;
    margin-top: 20px;
}

.legend h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.legend-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.stats {
    background: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.stat-item {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 8px;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #3498db;
}

@media (max-width: 768px) {
    .week-grid {
        font-size: 0.8em;
    }
    
    .day-cell {
        min-height: 80px;
        padding: 5px;
    }
    
    .gift-code {
        font-size: 0.7em;
        padding: 4px 6px;
    }
} 