/* Estilos comunes para páginas internas */

/* Contenedor principal */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tarjeta de contenido */
.content-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.content-card.no-sh {
    box-shadow: none;
    border: none;
    border-radius: 0;
    background-color: transparent;
}


/* Títulos principales */
h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 30px;
    color: var(--text);
}

/* Contenido de texto */
.content-text {
    line-height: 1.6;
    color: var(--text);
}

.content-text p {
    margin-bottom: 1rem;
}

.content-text ul {
    margin-left: 20px;
    margin-bottom: 1rem;
}

.content-text li {
    margin-bottom: 0.5rem;
}

.content-text a {
    color: var(--primary);
    text-decoration: none;
}

.content-text a:hover {
    text-decoration: underline;
}

/* Enlaces de navegación */
.back-link,
.logout-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    display: inline-block;
}

.back-link:hover,
.logout-link:hover {
    text-decoration: underline;
}

/* Tablas */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
}

.contracts-table,
.receipts-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.contracts-table th,
.contracts-table td,
.receipts-table th,
.receipts-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.contracts-table th,
.receipts-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--text);
}

.contracts-table tr:hover,
.receipts-table tr:hover {
    background-color: #f8f9fa;
}

/* Enlaces de contratos */
.contract-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.contract-link:hover {
    text-decoration: underline;
}

/* Estados de pago */
.paid {
    color: #28a745;
    font-weight: 600;
}

.pending {
    color: #dc3545;
    font-weight: 600;
}

.status-paid {
    color: #28a745;
    font-weight: 600;
}

.status-pending {
    color: #dc3545;
    font-weight: 600;
}

/* Botones */
.btn-pay {
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-pay:hover {
    background: var(--primary-dark);
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Formularios */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 600;
    color: var(--text);
}

.form-group input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.2);
}

/* Mensajes */
.error-message {
    background: #fee;
    color: #c33;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.no-contracts,
.no-receipts {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.no-action {
    color: #999;
}

/* Información de contratos */
.contract-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.contract-info p {
    margin-bottom: 5px;
}

.product-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.product-price {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        padding: 20px 15px;
    }

    .content-card {
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
    }

    .contracts-table,
    .receipts-table {
        font-size: 14px;
    }

    .contracts-table th,
    .contracts-table td,
    .receipts-table th,
    .receipts-table td {
        padding: 8px;
    }
} 