.matcher-app {
    color: var(--text-main, #f8fafc);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.matcher-app .glass {
    background: rgba(15, 15, 15, 0.85); /* Denser dark background */
    /* backdrop-filter: blur(8px); */
    /* -webkit-backdrop-filter: blur(8px); */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7); /* Stronger outer shadow */
    margin-bottom: 2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); /* Text shadow for extra readability */
}

.matcher-app .hidden {
    display: none !important;
}

.matcher-app .input-group {
    margin-bottom: 1.5rem;
}

.matcher-app label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted, #94a3b8);
}

.matcher-app input[type="text"], 
.matcher-app input[type="date"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
}

.matcher-app input[type="text"]:focus, 
.matcher-app input[type="date"]:focus {
    border-color: #8b0000; /* RoleCult Red */
}

.matcher-app .btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    display: inline-block;
    text-align: center;
}

.matcher-app .primary-btn {
    background: #8b0000;
    color: white;
    width: 100%;
}

.matcher-app .primary-btn:hover {
    background: #a00000;
    transform: translateY(-2px);
}

.matcher-app .secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.matcher-app .secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.matcher-app .accent-btn {
    background: #10b981;
    color: white;
}

.matcher-app .accent-btn:hover {
    background: #059669;
    transform: translateY(-2px);
}

.matcher-app .session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.matcher-app .share-box {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    justify-content: flex-end;
}

.matcher-app .share-box input {
    flex: 1;
    /* max-width removed to let it stretch fully */
}

.matcher-app .grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .matcher-app .grid-layout {
        grid-template-columns: 1fr;
    }
}

.matcher-app .date-picker-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.matcher-app .slots-container {
    margin-bottom: 1.5rem;
}

.matcher-app .day-group {
    margin-bottom: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 1rem;
}

.matcher-app .day-group h4 {
    margin-bottom: 0.5rem;
    color: #d4d4d4;
}

.matcher-app .time-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    padding: 0 0.5rem;
    height: 46px;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.matcher-app .time-select option {
    background: #1a1a1a;
    color: #fff;
}

.matcher-app .locked-range {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(16, 185, 129, 0.1); /* Subtle green tint */
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.matcher-app .locked-range .range-info {
    font-weight: 500;
}

.matcher-app .locked-range .range-date {
    color: var(--text-muted, #94a3b8);
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.matcher-app .locked-range .range-time {
    color: #10b981;
}

.matcher-app table {
    width: 100%;
    border-collapse: collapse;
}

.matcher-app th, .matcher-app td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.matcher-app th {
    color: var(--text-muted, #94a3b8);
    font-weight: 600;
}

.matcher-app .match-results {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.matcher-app .match-slot {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    border-left: 3px solid #10b981;
}

.matcher-app .msg {
    margin-top: 1rem;
    font-size: 0.9rem;
}
.matcher-app .msg.success { color: #10b981; }
.matcher-app .msg.error { color: #ef4444; }

.matcher-app .player-row {
    cursor: pointer;
    transition: background 0.2s ease;
}
.matcher-app .player-row:hover {
    background: rgba(255, 255, 255, 0.05);
}
.matcher-app .player-details-row {
    background: rgba(0, 0, 0, 0.2);
}
.matcher-app .player-details-content {
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted, #94a3b8);
}
.matcher-app .player-details-content ul {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}
.matcher-app .player-details-content li {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.matcher-app .toggle-icon {
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.2s;
    font-size: 0.8rem;
}
.matcher-app .player-row.expanded .toggle-icon {
    transform: rotate(90deg);
}

.matcher-app .icon-btn {
    background: none;
    border: none;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 0.5rem;
    transition: all 0.2s ease;
}

.matcher-app .icon-btn:hover {
    transform: scale(1.1);
}

.matcher-app .icon-btn.hide-btn:hover {
    color: #fff;
}

.matcher-app .icon-btn.edit-btn:hover {
    color: #3b82f6; /* Blue for edit */
}

.matcher-app .icon-btn.delete-btn:hover {
    color: #ef4444;
}

.matcher-app .player-actions {
    text-align: right;
    white-space: nowrap;
}

.matcher-app .custom-date-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}
