/* ========================================================================
   GIOCATE REGISTRATE - STILE URBAN FANTASY
   Stile per scheda_roles e file correlati
   ======================================================================== */

/* Container principale */
.pagina_scheda_roles {
    background: transparent;
    padding: 10px 0;
}

.pagina_scheda_roles .page_title h2 {
    color: #00d9ff;
    font-size: 1.5em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(0, 217, 255, 0.6);
    text-align: center;
    margin-bottom: 20px;
}

/* Bottoni generici */
.but_roles,
.pagina_scheda_roles input[type="submit"] {
    background: linear-gradient(135deg, #8a2be2 0%, #00d9ff 100%);
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    color: #fff;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
    margin: 5px;
}

.but_roles:hover,
.pagina_scheda_roles input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
}

/* Bottoni anno */
.buts_year {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.3) 0%, rgba(0, 217, 255, 0.3) 100%);
    border: 1px solid rgba(0, 217, 255, 0.5);
    border-radius: 5px;
    padding: 10px 20px;
    color: #00d9ff;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    margin: 5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.buts_year:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.6) 0%, rgba(0, 217, 255, 0.6) 100%);
    border-color: #00d9ff;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.5);
    color: #fff;
}

/* Container mesi */
.container_months {
    margin-top: 20px;
}

/* Titolo box mese */
.titolo_box {
    background: linear-gradient(90deg, rgba(138, 43, 226, 0.3) 0%, rgba(0, 217, 255, 0.3) 100%);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 5px;
    padding: 12px 20px;
    color: #00d9ff;
    font-size: 1.1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 15px 0 10px 0;
    text-align: center;
}

/* Lista giocate */
.list_roles {
    margin-bottom: 20px;
}

/* Tabella elenco */
.pagina_scheda_roles .elenco_record_gioco {
    overflow-x: auto;
}

.pagina_scheda_roles .elenco_record_gioco table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(10, 14, 23, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 5px;
}

.pagina_scheda_roles .titles_table td,
.pagina_scheda_roles .casella_titolo {
    background: linear-gradient(90deg, rgba(138, 43, 226, 0.2) 0%, rgba(0, 217, 255, 0.2) 100%);
    border-bottom: 1px solid rgba(0, 217, 255, 0.3);
}

.pagina_scheda_roles .titoli_elenco {
    color: #8a2be2;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 8px;
    text-align: center;
}

.pagina_scheda_roles .elementi_elenco,
.pagina_scheda_roles .elementi_elencoroles,
.pagina_scheda_roles .elementi_elencorolesquest {
    color: #00d9ff;
    font-size: 0.9em;
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

.pagina_scheda_roles tr:hover td {
    background: rgba(0, 217, 255, 0.05);
}

/* Search bar */
.search_bg {
    background: linear-gradient(135deg, rgba(26, 31, 53, 0.8) 0%, rgba(15, 19, 32, 0.9) 100%);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    text-align: center;
}

.search_bg .searchsel,
.search_bg select {
    background: rgba(10, 14, 23, 0.8);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 5px;
    padding: 10px 15px;
    color: #00d9ff;
    font-size: 0.95em;
    margin: 5px;
}

.search_bg .searchbar,
.search_bg input[type="text"] {
    background: rgba(10, 14, 23, 0.8);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 5px;
    padding: 10px 15px;
    color: #00d9ff;
    font-size: 0.95em;
    min-width: 250px;
    margin: 5px;
}

.search_bg .searchbar::placeholder,
.search_bg input[type="text"]::placeholder {
    color: rgba(0, 217, 255, 0.4);
}

.search_bg .searchbar:focus,
.search_bg input[type="text"]:focus,
.search_bg select:focus {
    outline: none;
    border-color: #00d9ff;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

/* Form gioco */
.pagina_scheda_roles .form_gioco,
.pagina_scheda_roles form {
    text-align: center;
}

.pagina_scheda_roles .form_label {
    color: #8a2be2;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 15px 0 5px 0;
}

.pagina_scheda_roles .form_field input,
.pagina_scheda_roles .form_field select,
.pagina_scheda_roles .form_field textarea,
.pagina_scheda_roles input[type="text"],
.pagina_scheda_roles select {
    background: rgba(10, 14, 23, 0.8);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 5px;
    padding: 10px 15px;
    color: #00d9ff;
    font-size: 0.95em;
    margin: 5px;
    min-width: 200px;
}

.pagina_scheda_roles .form_field input:focus,
.pagina_scheda_roles .form_field select:focus,
.pagina_scheda_roles .form_field textarea:focus {
    outline: none;
    border-color: #00d9ff;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.pagina_scheda_roles .form_info {
    color: rgba(0, 217, 255, 0.6);
    font-size: 0.85em;
    font-style: italic;
    margin: 10px 0;
    padding: 10px;
    background: rgba(138, 43, 226, 0.1);
    border-left: 3px solid rgba(138, 43, 226, 0.5);
    border-radius: 3px;
    text-align: left;
}

.pagina_scheda_roles .form_submit {
    margin: 20px 0;
}

/* Warning e messaggi */
.pagina_scheda_roles .warning {
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.5);
    border-radius: 5px;
    padding: 15px 20px;
    color: #00d9ff;
    text-align: center;
    margin: 15px 0;
}

/* Link back */
.pagina_scheda_roles .link_back {
    text-align: center;
    margin: 20px 0;
}

.pagina_scheda_roles .link_back a {
    color: #8a2be2;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    border: 1px solid rgba(138, 43, 226, 0.5);
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.pagina_scheda_roles .link_back a:hover {
    background: rgba(138, 43, 226, 0.2);
    border-color: #8a2be2;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}

/* Log roles */
.log_roles {
    background: rgba(10, 14, 23, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    max-height: 500px;
    overflow-y: auto;
}

.log_roles .chat_row_P,
.log_roles .chat_row_A {
    padding: 10px;
    margin: 5px 0;
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

.log_roles .chat_time {
    color: #b4b4b4;
    font-size: 0.8em;
    margin-right: 10px;
}

.log_roles .chat_name {
    color: #00ffff;
    font-weight: 600;
}

.log_roles .chat_name a {
    color: #00ffff;
    text-decoration: none;
}

.log_roles .chat_msg {
    color: #b4b4b4;
}

.log_roles .chat_master {
    background: linear-gradient(90deg, rgba(10,0,255,0.1) 0%, transparent 100%) !important;
    border-left: 5px solid #7617ce !important;
    color: #7617ce !important;
    padding-left: 40px;
    padding-right: 40px;
    margin-left: 5px;
    text-align: justify;
}

.log_roles .chat_avatar {
    border-radius: 50%;
    border: 2px solid rgba(0, 217, 255, 0.5);
    margin-right: 10px;
    vertical-align: middle;
}

/* Select dropdown per giorno/mese/anno */
.day, .month {
    background: rgba(10, 14, 23, 0.8) !important;
    border: 1px solid rgba(0, 217, 255, 0.3) !important;
    border-radius: 3px !important;
    padding: 5px 10px !important;
    color: #00ffff !important;
    font-size: 0.9em !important;
}

/* Responsive */
@media (max-width: 768px) {
    .search_bg .searchbar,
    .search_bg input[type="text"] {
        min-width: 100%;
        margin: 10px 0;
    }
    
    .pagina_scheda_roles .elenco_record_gioco table {
        font-size: 0.8em;
    }
    
    .buts_year {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}