/* Global Styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 20px;
}

.card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 24px;
    margin-bottom: 20px;
}

h1, h2, h3 {
    color: #111;
    margin-top: 0;
}

/* Header */
header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Buttons */
.btn-primary, .btn-secondary, .twitch-btn {
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #9147ff;
    color: white;
}

.btn-primary:hover {
    background-color: #7a3bd9;
}

.btn-secondary {
    background-color: #e4e4e7;
    color: #333;
}

.btn-secondary:hover {
    background-color: #d1d1d6;
}

.twitch-btn {
    background-color: #9147ff;
    color: white;
    font-size: 1.1em;
    padding: 12px 24px;
}

/* Login */
.login-container {
    text-align: center;
    padding-top: 100px;
}

.login-container h1 {
    font-size: 2.5em;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

.note {
    font-size: 0.9em;
    color: #555;
    margin-top: 15px;
}

/* Giveaway List */
.giveaway-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.giveaway-item-info {
    flex-grow: 1;
}

.giveaway-item h4 {
    margin: 0 0 5px 0;
    color: #555;
}

.giveaway-item span {
    font-size: 0.9em;
    margin-right: 15px;
}

.tag {
    background: #eee;
    padding: 3px 8px;
    border-radius: 4px;
}

.tag-active {
    background: #dcfce7;
    color: #166534;
}

.tag-inactive {
    background: #fee2e2;
    color: #991b1b;
}

/* Modal (Winner View) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    margin-top: 0;
    font-size: 1.8em;
    color: #9147ff;
}

.modal-content #winner-name {
    font-size: 1.4em;
    font-weight: bold;
    margin: 20px 0;
}