/*
 * Galaxy Marketing Hub - Event Management System
 * Custom CSS Styles
 */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
}

/* Card Styles */
.card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 0.75rem 1.25rem;
}

/* Feature Icons */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
}

/* Pricing Cards */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Client Logo Grid */
.clients-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    place-items: center;
}

.client-logo {
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}

.client-logo img {
    max-width: 100%;
    max-height: 50px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%);
}

/* Custom Login Form */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.login-card {
    max-width: 400px;
    width: 100%;
}

/* Dashboard Stats Cards */
.stats-card {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Navbar Custom */
.navbar-dark {
    background-color: #343a40 !important;
}

.navbar-brand img {
    margin-right: 10px;
}

/* Footer Styles */
footer {
    background-color: #343a40;
    color: white;
    padding: 3rem 0;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Form Controls */
.form-control {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 0.5rem 0.75rem;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Alerts */
.alert {
    border-radius: 5px;
    border: none;
}

/* Tables */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    padding: 5rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 50px 50px;
}

.hero-section h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Color Preview */
#color_preview {
    min-height: 100px;
    border-radius: 5px;
}

/* Attendance Stats */
.attendance-stat {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* QR Code Display */
.qr-code-container {
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    max-width: 250px;
    margin: 0 auto;
}

.qr-code-container img {
    max-width: 100%;
}

/* Voting Interface */
.voting-option {
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.voting-option:hover, .voting-option.selected {
    background-color: #e9ecef;
    transform: translateY(-5px);
}

/* Registration Form */
.registration-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Event Day Check-in */
.check-in-scanner {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.check-in-result {
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
}

.check-in-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.check-in-error {
    background-color: #f8d7da;
    color: #842029;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 3rem 0;
    }
    
    .clients-logo-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 5px;
    }
}

/* Utility Classes */
.text-truncate-2 {
    display: -webkit-box;

    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.lucky-draw-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 500px;
}

/* Wheel Pointer */
.wheel-pointer {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    filter: drop-shadow(0px 3px 5px rgba(0, 0, 0, 0.3));
}

/* Winner Display */
.winner-display {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
    background-color: #f8f9fa;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.winner-display.success {
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    color: #0f5132;
}

.winner-display .winner-name {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}

.winner-display .winner-prize {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 15px;
}

/* Prize Display */
.prize-display {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    background-color: #fff3cd;
    margin-bottom: 20px;
}

.prize-display .prize-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.prize-display .prize-details {
    flex: 1;
}

.prize-display .prize-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.prize-display .prize-description {
    color: #6c757d;
    margin-bottom: 0;
}

/* Lucky Draw Participants */
.participant-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.participant-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.2s ease;
}

.participant-item:last-child {
    border-bottom: none;
}

.participant-item:hover {
    background-color: #f8f9fa;
}

.participant-item .participant-name {
    font-weight: 600;
    margin-bottom: 0;
}

.participant-item .participant-info {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 0;
}

.participant-item .winner-badge {
    margin-left: auto;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.wheel-spinning {
    animation: spin 2s linear infinite;
}

/* Controls */
.draw-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.draw-controls .btn-lg {
    padding: 12px 30px;
    font-size: 18px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.draw-controls .btn-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.draw-controls .btn-lg:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* QR Code Display */
.qr-code-display {
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    max-width: 300px;
}

.qr-code-display img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.qr-code-display .scan-instructions {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 0;
}

/* Results Section */
.results-section {
    background-color: #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
}

.results-section h3 {
    margin-bottom: 20px;
    text-align: center;
}

/* Media Queries */
@media (max-width: 768px) {
    .lucky-draw-container {
        max-width: 300px;
    }
    
    .wheel-pointer {
        top: -25px;
    }
    
    .draw-controls {
        flex-direction: column;
    }
    
    .draw-controls .btn-lg {
        width: 100%;
    }
}