/* Lotto Upload CSS */
body {
    background-color: #f8f9fa;
    font-family: 'Noto Sans KR', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 40px auto;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    color: #2c3e50;
    font-size: 2.2rem;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    background: white;
    margin-bottom: 30px;
    overflow: hidden;
}

.upload-card {
    background: linear-gradient(135deg, #ffffff 0%, #f1f3f5 100%);
    border: 1px solid #e9ecef;
}

.link-btn {
    margin-bottom: 20px;
    background: #34495e;
    color: white;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.link-btn:hover {
    background: #2c3e50;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.3s ease-out;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Upload Form Styles */
.file-upload-area {
    padding: 40px;
    text-align: center;
    border: 2px dashed #ced4da;
    border-radius: 10px;
    background: white;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.file-upload-area:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.file-input {
    display: none;
}

.file-label {
    cursor: pointer;
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 15px;
    display: block;
}

.file-label i {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 15px;
    display: block;
}

.upload-btn {
    background: #28a745;
    color: white;
    padding: 12px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    border: none;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.upload-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: white;
}

/* Sample Table */
.sample-table-container {
    margin-top: 20px;
}

.sample-table {
    width: 100%;
    font-size: 0.85rem;
    color: #666;
    border-collapse: collapse;
}

.sample-table th,
.sample-table td {
    border: 1px solid #dee2e6;
    padding: 8px;
    text-align: center;
}

.sample-table th {
    background: #e9ecef;
    font-weight: 600;
}

/* Data List Styles */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: white;
    border-bottom: 1px solid #eee;
}

.list-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: #333;
}

.table-responsive {
    padding: 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 15px;
    text-align: center;
    border-bottom: 2px solid #dee2e6;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: center;
    vertical-align: middle;
    color: #333;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

.lotto-numbers {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.lotto-ball {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.bonus-ball-wrapper {
    position: relative;
    padding-left: 15px;
}

.bonus-ball-wrapper::before {
    content: '+';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-weight: bold;
}

/* Ball Colors */
.color-0 {
    background-color: #fbc400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 1-10: Yellow */
.color-1 {
    background-color: #69c8f2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 11-20: Blue */
.color-2 {
    background-color: #ff7272;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 21-30: Red */
.color-3 {
    background-color: #aaaaaa;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 31-40: Gray */
.color-4 {
    background-color: #b0d840;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 41-45: Green */

.pagination {
    display: flex;
    justify-content: center;
    padding: 20px;
    gap: 5px;
}

.page-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    color: #555;
    text-decoration: none;
    border: 1px solid #dee2e6;
    transition: all 0.2s;
}

.page-link:hover {
    background: #e9ecef;
    color: #333;
}

.page-link.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.footer {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 40px;
    color: #888;
}

.download-sample-btn {
    background: #17a2b8;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.download-sample-btn:hover {
    background: #138496;
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .lotto-ball {
        width: 25px;
        height: 25px;
        font-size: 0.75rem;
    }

    .data-table th,
    .data-table td {
        padding: 10px 5px;
        font-size: 0.9rem;
    }
}