.btn-small {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    margin-top: 5px;
}

#code-status {
    font-weight: bold;
    transition: color 0.3s;
}

#school-name-display {
    background-color: rgba(138, 43, 226, 0.1);
    color: var(--primary-color);
    font-weight: bold;
}

input[readonly] {
    cursor: not-allowed;
    opacity: 0.8;
}

button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

button[disabled]:hover {
    transform: none;
    box-shadow: none;
}

/* Registration Closed Badge Styling */
.registration-closed-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    margin-left: 10px;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.competition-btn.closed {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}

.competition-btn.closed::after {
    content: "Registration Closed";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(231, 76, 60, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Code display styling */
.code-display {
    margin: 15px 0;
}

.code-box {
    background-color: rgba(138, 43, 226, 0.1);
    border: 2px solid var(--primary-color);
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    border-radius: 5px;
    text-align: center;
    font-family: monospace;
    letter-spacing: 1px;
    margin: 5px 0;
}

.important-note {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffbb33;
    padding: 10px;
    margin: 15px 0;
}

.copy-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin: 5px;
    transition: all 0.3s;
}

.copy-button:hover {
    background-color: #6b21a8;
    transform: translateY(-2px);
}

.success-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #00C851;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 0;
    transition: all 0.3s ease;
}

.success-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.success-notification.hide {
    opacity: 0;
}

.success-message-container {
    background-color: #f7f7f7;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 20px auto;
    z-index: 100;
    position: relative;
    visibility: visible;
    opacity: 1;
    transition: all 0.5s ease;
}

.success-message {
    text-align: center;
    margin-bottom: 20px;
}

.success-message h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Competition Closed Styling */
.competition-btn.competition-closed {
    background: linear-gradient(135deg, #555, #333) !important;
    border: 2px solid #777 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    position: relative;
    overflow: hidden;
}

.competition-btn.competition-closed::before {
    content: "Not Available";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(244, 67, 54, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.competition-btn.competition-closed:hover::before {
    opacity: 1;
}

.closed-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #f44336;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: bold;
    z-index: 10;
}

/* Competition Closed Styling */
.competition-btn.competition-closed {
    background: linear-gradient(135deg, #555, #333) !important;
    border: 2px solid #777 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    position: relative;
    overflow: hidden;
}

.not-available-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(244, 67, 54, 0.95);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 1px;
    z-index: 10;
    pointer-events: none;
}

/* Ensure competition buttons have relative positioning for overlays */
.competition-btn {
    position: relative;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}