/* Estilos Modernos Frontend - Subscribe and Get */

.sg-form-container {
    max-width: 480px;
    margin: 20px auto;
    padding: 28px 24px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    box-sizing: border-box;
}

.sg-subscription-form .sg-form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.sg-subscription-form label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.sg-subscription-form .sg-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    background-color: #f9fafb;
    color: #1f2937;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}

.sg-subscription-form .sg-input:focus {
    outline: none;
    border-color: #4f46e5;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.sg-btn-submit {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.sg-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.sg-btn-submit:active {
    transform: translateY(0);
}

.sg-form-feedback {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.sg-form-feedback.sg-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.sg-form-feedback.sg-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Panel Frontend Admin con PIN */
.sg-admin-panel-wrap {
    max-width: 960px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

.sg-pin-box {
    max-width: 400px;
    margin: 40px auto;
    padding: 32px 24px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.sg-pin-header .sg-lock-icon {
    font-size: 44px;
    display: block;
    margin-bottom: 8px;
}

.sg-pin-header h3 {
    margin: 0 0 6px 0;
    font-size: 20px;
    color: #111827;
}

.sg-pin-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 20px 0;
}

.sg-pin-inputs input {
    width: 100%;
    padding: 14px;
    font-size: 26px;
    letter-spacing: 12px;
    text-align: center;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 18px;
    box-sizing: border-box;
}

.sg-pin-inputs input:focus {
    border-color: #4f46e5;
    outline: none;
}

.sg-btn-pin {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.sg-pin-feedback {
    margin-top: 12px;
    color: #dc2626;
    font-size: 14px;
}

/* Dashboard Frontend */
.sg-admin-dashboard {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.sg-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.sg-dh-title h2 {
    margin: 0;
    font-size: 22px;
    color: #111827;
    display: inline-block;
}

.sg-badge {
    background: #eeefbe;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    margin-left: 10px;
}

.sg-dh-actions {
    display: flex;
    gap: 10px;
}

.sg-btn-export {
    background: #10b981;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sg-btn-logout {
    background: #ef4444;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.sg-dashboard-filter {
    margin-bottom: 16px;
}

.sg-dashboard-filter select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
}

.sg-table-responsive {
    overflow-x: auto;
}

.sg-subscribers-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.sg-subscribers-table th, .sg-subscribers-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.sg-subscribers-table th {
    background-color: #f9fafb;
    color: #4b5563;
    font-weight: 600;
}

.sg-camp-tag {
    background: #e0e7ff;
    color: #3730a3;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.sg-count-badge {
    background: #f3f4f6;
    color: #1f2937;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
}
