﻿/* Container */
.newplayer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 25px 15px;
    background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
}

    .page-header h1 {
        margin: 0 0 8px 0;
        font-size: 1.8rem;
        font-weight: 700;
    }

.subtitle {
    margin: 0;
    font-size: 1rem;
    opacity: 0.95;
}

/* Alert Messages */
.alert {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid;
    animation: slideIn 0.3s ease-out;
}

.alert-error {
    background-color: #fee;
    border-left-color: #c33;
    color: #c33;
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Action Bar */
.action-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    gap: 10px;
}

    .action-bar.bottom {
        margin-top: 25px;
        justify-content: center;
    }

/* Form Section */
.form-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

    .form-section.highlight-section {
        background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    }

    .form-section.search-section {
        background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    }

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.section-icon {
    font-size: 1.5rem;
}

.section-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: #333;
    font-weight: 600;
}

.section-note {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.required-indicator {
    color: #ff0000;
    font-weight: bold;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group.full-width {
        grid-column: 1 / -1;
    }

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.required {
    color: #ff0000;
    font-weight: bold;
}

.form-input,
.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

    .form-input:focus,
    .form-select:focus {
        outline: none;
        border-color: #ff9900;
        box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
    }

    .form-input::placeholder {
        color: #adb5bd;
    }

.help-text {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #666;
}

    .help-text.highlight {
        color: #ff6600;
        font-weight: 600;
    }

/* Radio Groups */
.radio-group {
    display: flex;
    gap: 20px;
    padding: 10px 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

    .radio-label input[type="radio"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
    }

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.3s ease;
}

    .checkbox-label:hover {
        background: #e9ecef;
    }

    .checkbox-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
    }

    .checkbox-label span {
        font-weight: 500;
        color: #555;
    }

/* Buttons */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

.btn-large {
    padding: 14px 30px;
    font-size: 1.1rem;
}

.btn-search {
    background-color: #ff9900;
    color: black;
    padding: 12px 24px;
}

    .btn-search:hover {
        background-color: #e68a00;
        transform: translateY(-2px);
    }

.btn-select-small {
    background-color: #28a745;
    color: white;
    padding: 6px 14px;
    font-size: 0.9rem;
}

    .btn-select-small:hover {
        background-color: #218838;
    }

/* Search Bar */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 12px 15px !important;
    font-size: 1rem !important;
    border: 2px solid #ddd !important;
}

/* Results Table */
.results-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    max-height: 350px;
    overflow-y: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

    .results-table thead {
        background: linear-gradient(135deg, #434343 0%, #000000 100%);
        color: white;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .results-table th {
        padding: 12px;
        text-align: left;
        font-weight: 600;
        font-size: 0.9rem;
    }

    .results-table td {
        padding: 12px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 0.9rem;
    }

    .results-table tbody tr {
        transition: background-color 0.2s ease;
    }

        .results-table tbody tr:hover {
            background-color: #f8f9fa;
        }

/* Tee Selection */
.tee-selection {
    margin: 20px 0;
}

.form-select {
    cursor: pointer;
}

/* Preferred Course Display */
.preferred-course-display {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border: 2px solid #ff9900;
    border-radius: 8px;
}

    .preferred-course-display h3 {
        margin: 0 0 12px 0;
        font-size: 1.1rem;
        color: #ff9900;
    }

.course-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-label {
    font-weight: 600;
    color: #666;
}

.info-value {
    color: #333;
    font-weight: 500;
}

/* Responsive Design */
@media (min-width: 768px) {
    .newplayer-container {
        padding: 20px;
    }

    .page-header {
        padding: 35px 20px;
    }

        .page-header h1 {
            font-size: 2.2rem;
        }

    .subtitle {
        font-size: 1.1rem;
    }

    .form-section {
        padding: 25px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .form-grid {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .search-bar {
        flex-direction: column;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* Legacy Compatibility */
.ttable,
.trow,
.tlbl,
.tcell {
    display: none;
}
