/* Main Container */
#cc-app {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
}

.cc-container {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.cc-header {
    text-align: center;
    margin-bottom: 30px;
}

.cc-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Form Elements */
.cc-form-group {
    margin-bottom: 15px;
}

.cc-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.cc-form-group input[type="text"],
.cc-form-group input[type="email"],
.cc-form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

/* Grid for Contestants */
.cc-concours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.cc-contestant-card {
    border: 2px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.cc-contestant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cc-contestant-card.selected {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

.cc-contestant-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.cc-contestant-card .info {
    padding: 15px;
    text-align: center;
    background: #fff;
}

.cc-contestant-card .info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

/* Buttons */
.cc-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
    text-decoration: none;
}

.cc-btn:hover {
    background: #2980b9;
}

.cc-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.cc-btn.secondary {
    background: #95a5a6;
}

.cc-btn.secondary:hover {
    background: #7f8c8d;
}

.cc-btn.warning {
    background: #f39c12;
}

.cc-btn.danger {
    background: #e74c3c;
}

.cc-btn.admin-btn {
    background: #2c3e50;
}

/* Modal */
.cc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.cc-modal.hidden {
    display: none;
}

.cc-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.cc-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.cc-close:hover {
    color: #000;
}

/* Tabs */
.cc-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.cc-tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    color: #7f8c8d;
}

.cc-tab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.cc-tab-content.hidden {
    display: none;
}

/* Table */
.cc-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cc-table th, .cc-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.cc-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

/* Utilities */
.hidden {
    display: none !important;
}

.danger-zone {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #e74c3c;
    border-radius: 5px;
    background: #fff5f5;
}

/* Responsive */
@media (max-width: 768px) {
    .cc-concours-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .cc-header h1 {
        font-size: 1.8rem;
    }
    
    .cc-container {
        padding: 15px;
    }
}
