/* frontend-clippress.css */

/* --- Login Form Styles --- */
.clippress-login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.clippress-login-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 420px;
    padding: 40px;
    box-sizing: border-box;
}

.clippress-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.clippress-login-header h2 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.clippress-login-header p {
    margin: 0;
    font-size: 15px;
    color: #6b7280;
}

/* Error Message */
.clippress-login-error {
    background: #fef2f2;
    color: #991b1b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #fee2e2;
}

.clippress-login-success {
    background: #ecfdf5;
    color: #065f46;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #d1fae5;
}

.clippress-login-footer {
    margin-top: 25px;
    text-align: center;
    border-top: 1px solid #f3f4f6;
    padding-top: 15px;
}

.clippress-lost-pw-link {
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
}

.clippress-lost-pw-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.clippress-lost-pw-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.clippress-lost-pw-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 15px;
}

.clippress-logged-in-msg {
    text-align: center;
    background: #ecfdf5;
    border: 1px solid #34d399;
    color: #065f46;
    padding: 20px;
    border-radius: 8px;
}

.clippress-logged-in-msg p {
    margin-bottom: 15px;
}

.clippress-logged-in-msg a.button {
    display: inline-block;
    background: #111827;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

/* Form Elements generated by wp_login_form */
.clippress-login-card form {
    margin: 0;
}

.clippress-login-card .login-username,
.clippress-login-card .login-password {
    margin-bottom: 20px;
}

.clippress-login-card label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.clippress-login-card input[type="text"],
.clippress-login-card input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    color: #111827;
    transition: all 0.2s ease;
    box-sizing: border-box;
    background: #f9fafb;
}

.clippress-login-card input[type="text"]:focus,
.clippress-login-card input[type="password"]:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: #ffffff;
}

.clippress-login-card .login-remember {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.clippress-login-card .login-remember label {
    font-weight: 400;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.clippress-login-card .login-remember input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.clippress-login-card .login-submit {
    margin: 0;
}

.clippress-login-card .login-submit input[type="submit"] {
    width: 100%;
    background: #4f46e5;
    color: #ffffff;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.clippress-login-card .login-submit input[type="submit"]:hover {
    background: #4338ca;
}

/* --- Frontend Form Styles (Premium) --- */
.clippress-frontend-form-wrapper {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f1;
}

.clippress-form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.clippress-form-field {
    display: flex;
    flex-direction: column;
}

.clippress-form-field.full-width {
    width: 100%;
}

.clippress-form-field.col-6 {
    width: calc(50% - 10px);
}

@media (max-width: 768px) {
    .clippress-form-field.col-6 {
        width: 100%;
    }
}

.clippress-form-field label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.clippress-form-field input,
.clippress-form-field select,
.clippress-form-field textarea {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.clippress-form-field input:focus,
.clippress-form-field select:focus {
    border-color: #4f46e5;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Input Prefix (R$) */
.input-prefix-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    overflow: hidden;
}

.input-prefix-wrapper span {
    padding: 0 12px;
    background: #f3f4f6;
    color: #6b7280;
    font-weight: 600;
    font-size: 14px;
    border-right: 1px solid #d1d5db;
}

.input-prefix-wrapper input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Dropzone styling */
.clippress-file-dropzone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    position: relative;
    background: #f9fafb;
    transition: all 0.2s ease;
    cursor: pointer;
}

.clippress-file-dropzone:hover {
    border-color: #4f46e5;
    background: #eff6ff;
}

.clippress-file-dropzone input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.clippress-file-dropzone span {
    font-size: 14px;
    color: #6b7280;
}

/* Submit Button */
.clippress-btn {
    width: 100%;
    padding: 15px;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.clippress-btn:hover {
    background: #4338ca;
}

/* --- Clip List Styles (Premium) --- */
.clippress-filters-bar {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f1;
}

.clippress-filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.clippress-filters-form select {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    min-width: 180px;
    background: #fff;
}

.clippress-filter-btn {
    background: #111827;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.clippress-filter-btn:hover {
    background: #000;
}

.clippress-clear-btn {
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
}

.clippress-clear-btn:hover {
    color: #111827;
    text-decoration: underline;
}

/* Grid */
.clippress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* Base Card */
.clippress-clip-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #f0f0f1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.clippress-clip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Sentiment Left border indicator */
.clippress-clip-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: #e5e7eb; /* Default neutral */
}

.clippress-clip-card.sent-positivo::before { background: #10b981; }
.clippress-clip-card.sent-negativo::before { background: #ef4444; }
.clippress-clip-card.sent-neutro::before   { background: #9ca3af; }
.clippress-clip-card.sent-morno::before    { background: #f59e0b; } /* Orange for Morno */

.clippress-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.clippress-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.clippress-badge.midia {
    background: #eff6ff;
    color: #2563eb;
}

.clippress-badge.sentiment {
    background: #f3f4f6;
    color: #4b5563;
}

.clippress-badge.sentiment.sent-positivo { background: #ecfdf5; color: #065f46; }
.clippress-badge.sentiment.sent-negativo { background: #fef2f2; color: #991b1b; }
.clippress-badge.sentiment.sent-morno    { background: #fffbeb; color: #92400e; } /* Orange badge */

.clippress-clip-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #111827;
    margin-bottom: 20px;
    flex-grow: 1;
}

.clippress-card-meta {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-item {
    font-size: 14px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item i {
    font-size: 16px;
    color: #9ca3af;
}

.meta-item.ave-value {
    margin-top: 5px;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
    color: #111827;
}

.clippress-card-footer {
    padding-top: 15px;
    border-top: 1px solid #f3f4f6;
}

.clippress-card-link {
    color: #4f46e5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.clippress-card-link:hover {
    color: #4338ca;
}

.clippress-no-results {
    text-align: center;
    grid-column: 1 / -1;
    padding: 100px 0;
    color: #9ca3af;
    font-style: italic;
}

/* --- Dashboard Stats Styles --- */
.clippress-stats-container {
    margin-bottom: 40px;
}

.clippress-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.clippress-stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    border: 1px solid #f0f0f1;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    gap: 20px;
}

.clippress-stat-card.highlight {
    background: #111827;
    color: #ffffff;
    border: none;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: #f3f4f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #4f46e5;
}

.clippress-stat-card.highlight .stat-icon {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

.clippress-stat-card.highlight .stat-label {
    color: rgba(255,255,255,0.7);
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
}

.clippress-stat-card.highlight .stat-value {
    color: #ffffff;
}

/* Sentiment Chart/Bar */
.clippress-stat-card.sentiments {
    flex-direction: column;
    align-items: flex-start;
    grid-column: span 1;
}

.sentiment-bar-wrapper {
    width: 100%;
    height: 12px;
    background: #f3f4f6;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    margin: 15px 0;
}

.sentiment-segment {
    height: 100%;
    transition: width 0.3s ease;
}

.sentiment-segment.sent-positivo { background: #10b981; }
.sentiment-segment.sent-negativo { background: #ef4444; }
.sentiment-segment.sent-neutro   { background: #9ca3af; }
.sentiment-segment.sent-morno    { background: #f59e0b; }

.sentiment-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.legend-item {
    font-size: 12px;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-item.sent-positivo .dot { background: #10b981; }
.legend-item.sent-negativo .dot { background: #ef4444; }
.legend-item.sent-neutro .dot   { background: #9ca3af; }
.legend-item.sent-morno .dot    { background: #f59e0b; }

/* --- Report Generator Styles --- */
.clippress-report-gen-wrapper {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #f0f0f1;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    box-sizing: border-box;
}

.clippress-report-gen-wrapper h3 {
    margin-top: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.clippress-report-gen-wrapper p {
    color: #6b7280;
    margin-bottom: 25px;
}

.report-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

@media (max-width: 991px) {
    .report-form-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.report-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.report-field label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.report-field select, 
.report-field input {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}

.report-btn {
    width: auto;
    min-width: 250px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .report-btn {
        width: 100%;
    }
}

.report-status {
    margin-top: 20px;
}

.success-msg {
    padding: 12px 15px;
    background: #ecfdf5;
    color: #065f46;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid #d1fae5;
}

/* --- Account Management Widget --- */
.clippress-account-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f1;
    margin-top: 30px;
}

.clippress-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 10px;
}

.clippress-tab-btn {
    background: none;
    border: none !important;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    box-shadow: none !important;
}

.clippress-tab-btn.active {
    background: #eff6ff;
    color: #4f46e5;
}

.clippress-tab-btn:hover:not(.active) {
    background: #f9fafb;
    color: #111827;
}

.clippress-tab-content {
    display: none;
}

.clippress-tab-content.active {
    display: block;
}

.clippress-form-compact .form-row {
    margin-bottom: 20px;
}

.clippress-form-compact label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.clippress-form-compact input,
.clippress-form-compact select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    box-sizing: border-box;
}

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

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

.clippress-table th {
    font-weight: 700;
    color: #374151;
    background: #f9fafb;
}

.clippress-btn-small {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.clippress-btn-small.danger {
    background: #fef2f2;
    color: #ef4444;
}

.clippress-btn-small.danger:hover {
    background: #fee2e2;
}

.clippress-team-list h4 {
    margin: 0 0 15px;
    font-size: 16px;
}

.clippress-add-subuser h4 {
    margin: 20px 0 15px;
    font-size: 16px;
}

/* --- Branded Auth Forms (Lost/Reset PW) --- */
.clippress-auth-form p {
    margin-bottom: 20px;
}

.clippress-auth-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.clippress-auth-form input[type="text"],
.clippress-auth-form input[type="password"],
.clippress-auth-form input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    box-sizing: border-box;
    font-size: 15px;
}

.clippress-auth-form .submit {
    margin-top: 10px;
}

.clippress-login-success {
    padding: 12px 15px;
    background: #ecfdf5;
    color: #065f46;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid #d1fae5;
    margin-bottom: 20px;
}

.clippress-login-error {
    margin-bottom: 20px;
}






/* --- Pagination Styles --- */
.clippress-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.clippress-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.clippress-pagination .page-numbers:hover:not(.current) {
    border-color: #4f46e5;
    color: #4f46e5;
    background: #f5f3ff;
}

.clippress-pagination .page-numbers.current {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
    cursor: default;
}

.clippress-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}

/* Dashboard Charts */
.clippress-dashboard-filter {
    margin-bottom: 25px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.clippress-dashboard-filter label {
    font-weight: 600;
    color: #4b5563;
    margin: 0;
}

.clippress-dashboard-filter select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    min-width: 250px;
}

.clippress-charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.clippress-charts-container.full-width {
    grid-column: 1 / -1;
}

.clippress-chart-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.clippress-chart-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.clippress-chart-card h3 {
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.clippress-chart-card .chart-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
}
