/* WebKit Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px; /* Width of the scrollbar */
}

::-webkit-scrollbar-track {
    background: #c3cfe2; /* Track color */
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background-color: #0000005a; /* Thumb color */
    border-radius: 4px;
    border: 1px solid #c3cfe2; /* Creates padding around thumb */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #555; /* Thumb color on hover */
}

.hide {
    display: none;
}

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styles */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
}

/* Container */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.1rem;
    color: #555;
}

/* Points and Days Left */
.stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 0px;
}

.stat-item {
    background: #ffffff00;
    padding: 10px 20px;
    border-radius: 10px;
    border: #33333333 solid 1px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    transition: transform 0.3s;
    min-width: 150px;
    text-align: center;
}

.stat-item:hover {
    transform: translateY(-3px);
}

/* Points Display */
.points-display {
    display: inline-block;
}

.unconfirmed-points {
    opacity: 0.66;
}

/* Giveaway Image */
.giveaway-image {
    width: 100%;
    height: 300px;
    background-image: url('thumbnail.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.giveaway-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
}

.giveaway-image h2 {
    position: absolute;
    bottom: 15px;
    left: 20px;
    color: #fff;
    text-shadow: #00000096 1px 1px 4px;
    font-size: 1.8rem;
    z-index: 1;
}

/* Tasks */
.tasks {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.task {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.task:hover {
    transform: translateY(-3px);
}

.task-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.task-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-right: 10px;
    flex: 1;
}

.task-header .points {
    font-size: 1rem;
    font-weight: 700;
    color: #28a745;
    white-space: nowrap;
    margin-right: 25px;
}

.task-header::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    font-size: 1rem;
    transition: transform 0.3s;
}

.task.open .task-header::after {
    transform: rotate(180deg);
}

.task-body {
    display: none;
    padding: 15px;
    border-top: 1px solid #eee;
}

.task.open .task-body {
    display: block;
}

.task-body p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #555;
}

.task-body .form-group {
    margin-bottom: 10px;
}

.task-body label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.task-body input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
}

.task-body .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: 8px;
}

.task-body .notification {
    margin-top: 10px;
}

/* Social Link Styles */
.social-link {
    font-weight: 700;
    color: #28a745;
    text-decoration: none;
    position: relative;
}

/* Buttons */
.btn-primary {
    background: #28a745;
    border: none;
    color: #fff;
    cursor: pointer;
}

.btn-primary:hover {
    background: #218838;
}

.btn-outline-primary {
    background: none;
    border: 2px solid #28a745;
    color: #28a745;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.btn-outline-primary:hover {
    background: #28a745;
    color: #fff;
}

/* Loading Button Styles */
.btn-loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 13px;
    height: 13px;
    margin: -11px 0 0 -11px;
    border: 4px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: btn-loading-spinner 0.8s linear infinite;
}

@keyframes btn-loading-spinner {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Disable button when loading */
.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Alerts */
.alert {
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

/* Voting Options */
.vote-options {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 15px;
}

.vote-option {
    flex: 1 1 calc(50% - 15px);
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    outline: none;
}

.vote-option img {
    width: 100%;
    height: 80px;
    margin: 5px;
    object-fit: scale-down;
}

.vote-option label {
    padding: 10px;
    display: block;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.vote-option input[type="radio"] {
    display: none;
}

.vote-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: #28a745;
    transition: height 0.3s;
}

.vote-option.selected {
    border-color: #28a745;
    box-shadow: 0 0 10px rgba(40,167,69,0.3);
}

.vote-option.selected::before {
    height: 100%;
}

/* Focus States */
.vote-option:focus {
    outline: 2px solid #28a745;
}

/* Responsive */
@media (max-width: 768px) {
    .giveaway-image {
        height: 200px;
    }

    .task-header h3 {
        font-size: 1rem;
    }

    .vote-option {
        flex: 1 1 100%;
    }
}

@media (max-width: 576px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .stat-item {
        flex: 1;
    }

    .stats {
        flex-direction: column;
        gap: 10px;
    }
}
