/**
 * Payment Reminder Plugin Styles
 */

/* Login Container */
.pr-login-container {
    max-width: 450px;
    margin: 40px auto;
    padding: 20px;
}

.pr-login-box {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pr-login-box h2 {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 24px;
    text-align: center;
}

/* Form Styles */
.pr-form {
    margin-top: 20px;
}

.pr-form-group {
    margin-bottom: 20px;
}

.pr-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.pr-form-group input[type="text"],
.pr-form-group input[type="email"],
.pr-form-group input[type="password"],
.pr-form-group input[type="number"],
.pr-form-group input[type="datetime-local"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: #fff;
}

.pr-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: #fafbff;
}

.pr-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 768px) {
    .pr-form-row {
        grid-template-columns: 1fr;
    }
}

/* Buttons */
.pr-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.pr-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    width: 100%;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pr-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.pr-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.pr-btn-secondary:hover {
    background: #5a6268;
}

.pr-btn-success {
    background: #28a745;
    color: #fff;
}

.pr-btn-success:hover {
    background: #218838;
}

.pr-btn-danger {
    background: #dc3545;
    color: #fff;
}

.pr-btn-danger:hover {
    background: #c82333;
}

.pr-btn-small {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
    font-weight: 500;
}

/* Form Links */
.pr-form-links {
    margin-top: 20px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.pr-form-links a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.pr-form-links a:hover {
    text-decoration: underline;
}

/* Messages */
.pr-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    display: none;
}

.pr-message.show {
    display: block;
}

.pr-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pr-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.pr-message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Dashboard */
.pr-dashboard-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 15px;
}

.pr-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pr-dashboard-header h2 {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}

.pr-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.pr-user-info span {
    color: #fff;
    font-weight: 500;
    font-size: 15px;
}

.pr-user-info .pr-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    backdrop-filter: blur(10px);
}

.pr-user-info .pr-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Stats */
.pr-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.pr-stat-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pr-stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.pr-stat-box h3 {
    margin: 0 0 12px 0;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pr-stat-number {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.2;
}

.pr-stat-success {
    color: #10b981;
}

.pr-stat-warning {
    color: #f59e0b;
}

/* Dashboard Content */
.pr-dashboard-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.pr-add-reminder-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.pr-add-reminder-section h3,
.pr-reminders-list h3 {
    margin: 0 0 25px 0;
    color: #1a202c;
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
    display: inline-block;
}

/* Reminders Table */
.pr-reminders-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
    display: block;
}

.pr-reminders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}

.pr-reminders-table-desktop {
    display: table;
}

.pr-reminders-table thead {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
}

.pr-reminders-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pr-reminders-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
}

.pr-reminders-table tbody tr {
    transition: background 0.2s ease;
}

.pr-reminders-table tbody tr:hover {
    background: #f9fafb;
}

.pr-reminders-table tbody tr.pr-paid {
    opacity: 0.7;
    background: #f0fdf4;
}

.pr-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Badges */
.pr-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pr-badge-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.pr-badge-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Empty Message */
.pr-empty-message {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Loading */
.pr-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Mobile Card View - Hidden by default (shown on mobile) */
.pr-reminders-mobile {
    display: none !important;
}

.pr-reminder-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pr-reminder-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.pr-reminder-card.pr-paid-card {
    opacity: 0.7;
    background: #f0fdf4;
}

.pr-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f3f4f6;
}

.pr-card-header h4 {
    margin: 0;
    color: #1a202c;
    font-size: 18px;
    font-weight: 600;
}

.pr-card-body {
    margin-bottom: 15px;
}

.pr-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.pr-card-row:last-child {
    border-bottom: none;
}

.pr-card-label {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.pr-card-value {
    color: #1a202c;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}

.pr-card-amount {
    color: #667eea;
    font-size: 18px;
    font-weight: 700;
}

.pr-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid #f3f4f6;
}

.pr-card-actions .pr-btn {
    flex: 1;
    min-width: 100px;
}

/* Responsive */
@media (max-width: 768px) {
    .pr-dashboard-container {
        margin: 10px auto;
        padding: 10px;
    }
    
    .pr-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }
    
    .pr-dashboard-header h2 {
        font-size: 20px;
    }
    
    .pr-user-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .pr-user-info .pr-btn-secondary {
        width: 100%;
    }
    
    .pr-dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .pr-stat-box {
        padding: 20px 15px;
    }
    
    .pr-stat-number {
        font-size: 28px;
    }
    
    .pr-dashboard-content {
        padding: 20px 15px;
    }
    
    .pr-add-reminder-section h3,
    .pr-reminders-list h3 {
        font-size: 18px;
    }
    
    /* Hide desktop table on mobile */
    .pr-reminders-table-desktop,
    .pr-reminders-table-wrapper {
        display: none !important;
    }
    
    /* Show mobile cards on mobile */
    .pr-reminders-mobile {
        display: block !important;
    }
    
    .pr-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .pr-dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .pr-stat-number {
        font-size: 32px;
    }
    
    .pr-card-actions .pr-btn {
        width: 100%;
    }
}

/* Desktop: Show table, hide mobile cards */
@media (min-width: 769px) {
    .pr-reminders-mobile {
        display: none !important;
    }
    
    .pr-reminders-table-desktop {
        display: table !important;
    }
    
    .pr-reminders-table-wrapper {
        display: block !important;
    }
}


/* ============================================================
   Adet Takvimi & Önemli Günler — modern, şık, mobil uyumlu
   ============================================================ */
/* Panel'i dar sayfa/promo sarmalayıcısından kurtarıp geniş göster (breakout) */
.pr-dashboard-container {
    box-sizing: border-box;
    width: min(1120px, 94vw);
    margin-left: 50%;
    transform: translateX(-50%);
    text-align: left;
    position: relative;
}
@media (max-width: 900px) {
    .pr-dashboard-container { width: 100%; margin-left: 0; transform: none; }
}

/* Admin görünüm şeridi */
.pr-impersonate-banner {
    background: linear-gradient(90deg,#fff7e6,#fff3cd);
    border: 1px solid #ffe08a; color: #7a5b00;
    padding: 12px 16px; border-radius: 10px; margin-bottom: 18px;
    font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.pr-impersonate-banner a { margin-left: auto; font-weight: 600; color: #b45309; text-decoration: underline; }

/* Kart */
.pr-card {
    background: #fff; border-radius: 16px; padding: 22px;
    margin-bottom: 24px; border: 1px solid #eef0f4;
    box-shadow: 0 8px 24px rgba(17,24,39,.06);
}
.pr-card--rose   { border-top: 4px solid #ec4899; }
.pr-card--indigo { border-top: 4px solid #6366f1; }
.pr-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.pr-card-head h2 { margin: 0; font-size: 20px; line-height: 1.2; }
.pr-card--rose   .pr-card-head h2 { color: #be185d; }
.pr-card--indigo .pr-card-head h2 { color: #4f46e5; }
.pr-card-emoji { font-size: 22px; line-height: 1; }
.pr-card-sub { margin: 0 0 14px; color: #6b7280; font-size: 13.5px; }

/* Satır içi form */
.pr-inline-form { border-radius: 12px; padding: 16px; margin-bottom: 18px; }
.pr-inline-form--rose   { background: #fdf2f8; border: 1px solid #fbcfe8; }
.pr-inline-form--indigo { background: #f5f7ff; border: 1px solid #e0e7ff; }
.pr-form-hint { margin: 0 0 12px; font-size: 13px; color: #9d174d; }
.pr-inline-form--indigo .pr-form-hint { color: #4338ca; }
.pr-fields { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 10px; }
.pr-fields:last-child { margin-bottom: 0; }
.pr-field { display: flex; flex-direction: column; gap: 5px; min-width: 120px; }
.pr-field--grow { flex: 1 1 200px; }
.pr-field--btn { justify-content: flex-end; }
.pr-field label { font-size: 12.5px; font-weight: 600; color: #4b5563; }
.pr-field input {
    width: 100%; box-sizing: border-box; padding: 10px 12px;
    border: 1px solid #d1d5db; border-radius: 9px; font-size: 14px;
    background: #fff; transition: border-color .15s, box-shadow .15s;
}
.pr-field input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.pr-inline-form--rose .pr-field input:focus { border-color: #ec4899; box-shadow: 0 0 0 3px rgba(236,72,153,.15); }
.pr-form-msg { font-size: 13px; align-self: center; }

/* Butonlar */
.pr-btn-rose { background: #be185d !important; }
.pr-btn-rose:hover { background: #9d174d !important; }

/* Sonraki adet rozeti */
.pr-next-badge {
    display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px;
    background: linear-gradient(90deg,#fdf2f8,#fce7f3);
    border: 1px solid #fbcfe8; border-radius: 999px;
    padding: 8px 16px; margin-bottom: 14px;
}
.pr-next-badge-label { font-size: 13px; color: #9d174d; }
.pr-next-badge-date { font-weight: 700; color: #be185d; font-size: 15px; }
.pr-next-badge-days { font-size: 12px; background: #be185d; color: #fff; padding: 2px 10px; border-radius: 999px; }

/* Tablo */
.pr-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }
.pr-cal-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 540px; }
.pr-cal-table thead tr { background: #5b4636; color: #fff; text-align: left; }
.pr-cal-table--indigo thead tr { background: #4f46e5; }
.pr-cal-table th { padding: 12px 14px; font-weight: 600; white-space: nowrap; }
.pr-cal-table td { padding: 11px 14px; border-bottom: 1px solid #eef0f4; }
.pr-cal-table tbody tr.is-upcoming { background: #fdf2f8; font-weight: 600; }
.pr-cal-table tbody tr:hover { background: #faf7ff; }
.pr-cell-strong { font-weight: 600; }

/* Rozetler */
.pr-badge {
    display: inline-block; padding: 3px 11px; border-radius: 999px;
    font-size: 11px; font-weight: 700; letter-spacing: .3px; white-space: nowrap;
}
.pr-badge--upcoming { background: #be185d; color: #fff; }
.pr-badge--past     { background: #e5e7eb; color: #6b7280; }
.pr-badge--sent     { background: #d1fae5; color: #065f46; }
.pr-badge--wait     { background: #fef3c7; color: #92400e; }

.pr-med-note { margin-top: 14px; font-size: 11.5px; color: #9ca3af; font-style: italic; line-height: 1.6; }

/* ---------- MOBİL: tabloları karta çevir ---------- */
@media (max-width: 768px) {
    .pr-card { padding: 16px; border-radius: 14px; }
    .pr-card-head h2 { font-size: 17px; }
    .pr-field--grow, .pr-field { flex: 1 1 100%; min-width: 0; width: 100%; }
    .pr-field--btn .pr-btn { width: 100%; }

    .pr-table-scroll { overflow: visible; }
    .pr-cal-table { min-width: 0; font-size: 13px; }
    .pr-cal-table thead { display: none; }
    .pr-cal-table, .pr-cal-table tbody, .pr-cal-table tr, .pr-cal-table td { display: block; width: 100%; box-sizing: border-box; }
    .pr-cal-table tr {
        margin-bottom: 12px; border: 1px solid #eef0f4; border-radius: 12px;
        padding: 6px 12px; background: #fff; box-shadow: 0 2px 8px rgba(17,24,39,.04);
    }
    .pr-cal-table tbody tr.is-upcoming { background: #fdf2f8; border-color: #fbcfe8; }
    .pr-cal-table td {
        display: flex; justify-content: space-between; align-items: center; gap: 14px;
        padding: 9px 0; border-bottom: 1px solid #f3f4f6; text-align: right;
    }
    .pr-cal-table td:last-child { border-bottom: none; }
    .pr-cal-table td::before {
        content: attr(data-label); font-weight: 600; color: #6b7280;
        text-align: left; font-size: 12px; flex: 0 0 auto;
    }
    .pr-cal-table td[data-label=""]::before { content: none; }
    .pr-cal-table td[data-label=""] { justify-content: flex-end; }
    .pr-next-badge { width: 100%; box-sizing: border-box; justify-content: center; }
    .pr-impersonate-banner a { margin-left: 0; }
}

/* Adet takvimi — ay görünümü (panel) */
.pr-cal-months { display:flex; gap:16px; flex-wrap:wrap; justify-content:center; margin:8px 0 16px; }
.pr-cal-month { flex:1 1 300px; max-width:360px; }
.pr-proj-details { margin-top:4px; }
.pr-proj-details summary { cursor:pointer; color:#be185d; font-weight:600; font-size:13px; padding:6px 0; list-style:none; }
.pr-proj-details summary::-webkit-details-marker { display:none; }
.pr-proj-details summary:before { content:"▸ "; }
.pr-proj-details[open] summary:before { content:"▾ "; }
@media (max-width:600px){ .pr-cal-months{ flex-direction:column; align-items:center; } .pr-cal-month{ width:100%; } }

/* ---- Adet takvimi: estetik gün hücreleri (panel) ---- */
.prc-day{
    display:inline-flex; align-items:center; justify-content:center;
    width:38px; height:38px; border-radius:50%;
    font-size:13px; font-weight:600; color:#6b7280; line-height:1;
    position:relative; transition:transform .15s ease;
}
.pr-cal-month .prc-day:hover{ transform:scale(1.10); }
.prc-day.is-fertile{ background:#fde2ee; color:#be185d; font-weight:700; }
.prc-day.is-ovu{
    color:#7c3aed; font-weight:800; background:#f5f3ff;
    box-shadow:0 0 0 2px #a855f7, 0 0 12px rgba(168,85,247,.45);
}
.prc-day.is-ovu::after{ content:'✨'; position:absolute; top:-8px; right:-4px; font-size:11px; }
.prc-day.is-period{
    color:#fff; font-weight:800; background-color:transparent;
    background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 26'><path d='M12 1C12 1 4 11 4 16.5C4 21.2 7.6 24.5 12 24.5C16.4 24.5 20 21.2 20 16.5C20 11 12 1 12 1Z' fill='%23e1196f'/><ellipse cx='9.3' cy='16' rx='2' ry='2.8' fill='%23ffffff' fill-opacity='0.42'/></svg>");
    border-radius:0; overflow:visible;
    background-repeat:no-repeat; background-position:center top; background-size:30px 38px;
    align-items:flex-end; padding-bottom:6px; box-sizing:border-box;
    filter:drop-shadow(0 3px 5px rgba(190,24,93,.32));
}
.prc-day.is-today{ outline:2px solid #7e22ce; outline-offset:1px; }
.prc-day.is-period.is-today{ outline:none; }
.pr-cal-month table{ border-collapse:separate; }

/* Adet durum bildirimi (panel) */
.pr-status-banner{ margin:0 0 14px; padding:12px 16px; border-radius:12px; font-weight:700; font-size:14px; text-align:center; }
.pr-status-period{ background:linear-gradient(135deg,#fce7f3,#fbcfe8); color:#9d174d; border:1px solid #f9a8d4; }
.pr-status-ovu{ background:#f5f3ff; color:#6d28d9; border:1px solid #ddd6fe; }
.pr-status-soon{ background:#fff1f2; color:#be123c; border:1px solid #fecdd3; }
