/*
 * Modern styling for Rede Show Portal elements (v1.3)
 * Incorporating Rede Show Logo Colors (Orange: #F7941E, Red: #D71920).
 */

:root {
    --rsp-orange: #F7941E; /* Rede Show Orange */
    --rsp-red: #D71920;    /* Rede Show Red */
    --rsp-orange-dark: #E67E00; /* Darker shade for hover */
    --rsp-text-dark: #333;
    --rsp-text-light: #fff;
    --rsp-text-medium: #666;
    --rsp-border-light: #ddd;
    --rsp-border-medium: #ccc;
    --rsp-bg-light: #f9f9f9;
    --rsp-bg-white: #fff;
    --rsp-bg-error: #fdecea; /* Lighter red background for errors */
    --rsp-bg-inactive: #f5f5f5; /* Pastel gray for inactive items */
    --rsp-text-inactive: #999; /* Lighter text for inactive items */
}

/* General Layout */
.rsp-login-form-container,
.rsp-dashboard-container,
.rsp-user-account-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 25px;
    background-color: var(--rsp-bg-white);
    border: 1px solid var(--rsp-border-light);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,.08);
}

/* Headings */
.rsp-dashboard-container h2,
.rsp-user-account-container h2,
.rsp-user-account-container h3 {
    color: var(--rsp-orange);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--rsp-orange);
    padding-bottom: 10px;
}

/* Forms */
.rsp-form .rsp-form-row {
    margin-bottom: 20px;
}

.rsp-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--rsp-text-dark);
}

.rsp-form .input-text,
.rsp-form input[type="text"],
.rsp-form input[type="password"],
.rsp-form input[type="email"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--rsp-border-medium);
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.rsp-form .input-text:focus,
.rsp-form input[type="text"]:focus,
.rsp-form input[type="password"]:focus,
.rsp-form input[type="email"]:focus {
    border-color: var(--rsp-orange);
    outline: none;
    box-shadow: 0 0 0 2px rgba(247, 148, 30, 0.2);
}

.rsp-form .required {
    color: var(--rsp-red);
    margin-left: 3px;
}

.rsp-form-row-remember label span {
    font-weight: normal;
    margin-left: 8px;
}

.rsp-form-row-remember input[type="checkbox"] {
    vertical-align: middle;
}

/* Buttons */
.rsp-button,
button.rsp-button {
    background-color: var(--rsp-orange);
    color: var(--rsp-text-light);
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.rsp-button:hover,
button.rsp-button:hover {
    background-color: var(--rsp-orange-dark);
    color: var(--rsp-text-light);
}

.rsp-button:active,
button.rsp-button:active {
    transform: translateY(1px);
}

/* Outline style button */
.rsp-button-outline {
    background-color: transparent;
    color: var(--rsp-orange);
    border: 2px solid var(--rsp-orange);
    padding: 10px 18px; /* Adjust padding for border */
}

.rsp-button-outline:hover {
    background-color: var(--rsp-orange);
    color: var(--rsp-text-light);
}

.rsp-button-download {
    background-color: var(--rsp-orange);
    padding: 6px 12px;
    font-size: 0.9em;
}

.rsp-button-download:hover {
    background-color: var(--rsp-orange-dark);
}

/* Login Specific */
.rsp-login-error {
    color: var(--rsp-red);
    border: 1px solid var(--rsp-red);
    padding: 12px 15px;
    margin-bottom: 20px;
    background-color: var(--rsp-bg-error);
    border-radius: 5px;
}

.rsp-lost-password {
    margin-top: 15px;
}

.rsp-lost-password a {
    color: var(--rsp-orange);
    text-decoration: none;
}

.rsp-lost-password a:hover {
    text-decoration: underline;
}

/* Tables */
.rsp-table-container {
    overflow-x: auto;
    margin-bottom: 25px;
}

.rsp-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
    border: 1px solid var(--rsp-border-light);
    border-radius: 5px;
    overflow: hidden;
}

.rsp-table th,
.rsp-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--rsp-border-light);
    text-align: left;
}

.rsp-table th {
    background-color: var(--rsp-bg-light);
    font-weight: 600;
    color: var(--rsp-text-dark);
    border-bottom-width: 2px;
}

.rsp-table tr:last-child td {
    border-bottom: none;
}

.rsp-table tr:hover td {
    background-color: #f0f0f0; /* Slightly darker hover */
}

.rsp-table td img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.rsp-table .rsp-actions-column a,
.rsp-table .rsp-actions-column button {
    margin-right: 8px;
    margin-bottom: 8px;
}

/* Inactive/Expired Item Styling */
.rsp-table tr.rsp-item-expired td {
    background-color: var(--rsp-bg-inactive);
    color: var(--rsp-text-inactive);
    opacity: 0.7;
}

.rsp-table tr.rsp-item-expired:hover td {
    background-color: var(--rsp-bg-inactive); /* Keep inactive background on hover */
    opacity: 0.8; /* Slightly less opaque on hover */
}

.rsp-table tr.rsp-item-expired td img {
    opacity: 0.5;
}

.rsp-table tr.rsp-item-expired .rsp-button-download {
    display: none; /* Hide download button for expired items */
}

/* Responsive Table Styling */
@media screen and (max-width: 768px) {
    .responsive-table table {
        border: none;
        border-radius: 0;
    }
    .responsive-table thead {
        display: none;
    }
    .responsive-table tr {
        display: block;
        border: 1px solid var(--rsp-border-light);
        border-radius: 5px;
        margin-bottom: 15px;
        padding: 15px;
    }
    .responsive-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
        border-bottom: 1px dashed var(--rsp-border-light);
        padding: 10px 0;
        text-align: right;
    }
    .responsive-table tr td:last-child {
        border-bottom: none;
    }
    .responsive-table td::before {
        content: attr(data-label);
        font-weight: bold;
        text-align: left;
        margin-right: 10px;
        color: var(--rsp-orange);
    }
    .responsive-table td.rsp-actions-column {
        justify-content: flex-start;
        padding-top: 10px;
    }
    .responsive-table td.rsp-actions-column::before {
        display: none;
    }

    /* Responsive Inactive Styling */
    .responsive-table tr.rsp-item-expired {
        background-color: var(--rsp-bg-inactive);
        opacity: 0.7;
    }
    .responsive-table tr.rsp-item-expired:hover {
        opacity: 0.8;
    }
    .responsive-table tr.rsp-item-expired td {
        color: var(--rsp-text-inactive);
        border-bottom-color: #e0e0e0; /* Slightly darker dashed line */
    }
    .responsive-table tr.rsp-item-expired td::before {
        color: var(--rsp-orange); /* Keep label color */
        opacity: 0.7;
    }
}

/* User Account */
.rsp-user-info {
    margin-bottom: 25px;
    padding: 20px;
    background-color: var(--rsp-bg-light);
    border: 1px solid var(--rsp-border-light);
    border-radius: 5px;
}

.rsp-user-info p {
    margin: 8px 0;
    font-size: 1.1em;
}

.rsp-user-info strong {
    color: var(--rsp-text-dark);
}

/* Admin specific styles (Keep minimal or move to separate file) */
.rsp-admin-table-filter {
    margin-bottom: 15px;
    max-width: 300px;
}

.rsp-admin-table-filter input {
    width: 100%;
    padding: 8px;
}

/* container geral */
.rsp-login-form {
  max-width: 360px;
  margin: 40px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  font-family: Arial, sans-serif;
  color: #333;
}

/* título */
.rsp-login-form h2 {
  margin-bottom: 20px;
  font-size: 1.5em;
  text-align: center;
  color: #222;
}

/* labels */
.rsp-login-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  font-size: 0.9em;
}

/* inputs */
.rsp-login-form input[type="text"],
.rsp-login-form input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 0.95em;
}

/* checkbox lembrar-me */
.rsp-login-form .rsp-remember {
  margin-bottom: 20px;
  font-size: 0.9em;
}
.rsp-login-form .rsp-remember input {
  margin-right: 6px;
}

/* botão */
.rsp-login-form button {
  width: 100%;
  padding: 12px;
  background: #f7931e;
  border: none;
  border-radius: 4px;
  font-size: 1em;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}
.rsp-login-form button:hover {
  background: #e07a00;
}

/* link de senha perdida */
.rsp-login-form .rsp-lostpass {
  margin-top: 16px;
  text-align: center;
  font-size: 0.9em;
}
.rsp-login-form .rsp-lostpass a {
  color: #f7931e;
  text-decoration: none;
}
.rsp-login-form .rsp-lostpass a:hover {
  text-decoration: underline;
}
