/* assets/css/reminders.css */

:root{
    --bg: #F5F5F7;
    --card: #FFFFFF;
    --text: #1D1D1F;
    --muted: #86868B;
    --line: rgba(0,0,0,.08);
    --accent:#007AFF;
    --accentSoft: rgba(0,122,255,.12);
    --danger:#FF3B30;
    --dangerSoft: rgba(255,59,48,.12);
    --success:#34C759;
    --successSoft: rgba(52,199,89,.12);
    --r-lg: 22px;
    --r-md: 16px;
    --r-sm: 12px;
    --shadow: 0 10px 30px rgba(0,0,0,.06);
    --ff: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*{ box-sizing:border-box; }

body{
    margin:0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--ff);
    -webkit-font-smoothing: antialiased;
    padding-bottom: 70px;
}

/* Navbar */
.navbar{
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
}

.nav-back{
    display:inline-flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    color: var(--text);
    font-weight: 600;
}
.nav-back i{ color: var(--muted); font-size: 1.1rem; }

.status-pill{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:6px 12px;
    border-radius: 999px;
    background: #EFEFF4;
    color: var(--muted);
    font-size:.85rem;
    font-weight:600;
}

.btn-logout{
    color: var(--danger);
    font-weight: 700;
    padding: 6px 10px;
}

/* Layout */
.main{ margin-top: 26px; }
.page-head{
    display:flex;
    justify-content: space-between;
    align-items:flex-end;
    gap:14px;
    margin-bottom: 14px;
}
.title-wrap{ display:flex; flex-direction:column; gap:2px; }
.page-title{
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    font-weight: 800;
    margin:0;
}
.page-subtitle{
    margin:0;
    color: var(--muted);
    font-size: .95rem;
}

.head-actions{
    display:flex;
    gap:10px;
    align-items:center;
}

/* Buttons */
.btn{
    border:none;
    border-radius: var(--r-sm);
    padding: 10px 14px;
    font-weight: 700;
    display:inline-flex;
    align-items:center;
    gap:10px;
}
.btn i{ font-size: 1rem; }

.btn-soft{
    background: #EFEFF4;
    color: var(--text);
}
.btn-soft:hover{ background:#E6E6EB; }

.btn-solid{
    background: var(--text);
    color:#fff;
}
.btn-solid:hover{ background:#000; transform: translateY(-1px); }

/* Panel */
.panel{
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    padding: 18px;
}

@media (min-width: 992px){
    .panel{ padding: 22px; }
}

/* Notices */
.notice{
    border-radius: var(--r-md);
    padding: 12px 14px;
    font-weight: 600;
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom: 12px;
    border: 1px solid transparent;
}
.notice-muted{
    background: #F2F2F7;
    color: var(--muted);
}
.notice-danger{
    background: var(--dangerSoft);
    color: var(--danger);
    border-color: rgba(255,59,48,.18);
}
.notice-success{
    background: var(--successSoft);
    color: var(--success);
    border-color: rgba(52,199,89,.18);
}

/* Hint (collapsible) */
.hint{
    background:#F2F2F7;
    border: 1px solid rgba(0,0,0,.04);
    border-radius: var(--r-md);
    padding: 10px 12px;
    margin-bottom: 14px;
}
.hint summary{
    cursor:pointer;
    list-style:none;
    display:flex;
    align-items:center;
    gap:10px;
    font-weight: 800;
    color: var(--text);
}
.hint summary::-webkit-details-marker{ display:none; }
.hint summary i{ color: var(--accent); }
.hint-body{
    color: var(--muted);
    font-weight: 600;
    margin-top: 10px;
    line-height: 1.5;
}

/* Rules container */
.rules{
    display:flex;
    flex-direction: column;
    gap: 12px;
}

/*
  JS tarafında kartları şu sınıfla üret:
  <div class="rule-item"> ... </div>
*/
.rule-item{
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 14px;
    background: #fff;
}
.rule-item:hover{
    border-color: rgba(0,122,255,.25);
    box-shadow: 0 6px 18px rgba(0,122,255,.08);
}

/* Rule header (özet) */
.rule-head{
    display:flex;
    justify-content: space-between;
    align-items:flex-start;
    gap:12px;
    margin-bottom: 10px;
}
.rule-title{
    font-weight: 900;
    letter-spacing: -0.01em;
    margin:0;
    font-size: 1.02rem;
}
.rule-sub{
    color: var(--muted);
    font-weight: 600;
    font-size: .86rem;
    margin-top: 4px;
}

/* Inputs (modern) */
.rule-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
@media (max-width: 768px){
    .page-head{ flex-direction: column; align-items:stretch; }
    .head-actions{ width:100%; }
    .head-actions .btn{ flex:1; justify-content:center; }
    .rule-grid{ grid-template-columns: 1fr; }
}

.field label{
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    font-weight: 800;
    margin-bottom: 6px;
    display:block;
}

.input, .textarea{
    width:100%;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    background: #F7F7FA;
    padding: 10px 12px;
    font-weight: 600;
    color: var(--text);
    outline:none;
}
.input:focus, .textarea:focus{
    background:#fff;
    border-color: rgba(0,122,255,.35);
    box-shadow: 0 0 0 3px var(--accentSoft);
}

.textarea{ min-height: 88px; resize: vertical; }

.rule-actions{
    display:flex;
    align-items:center;
    gap:10px;
}

.icon-btn{
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: transparent;
    display:flex;
    align-items:center;
    justify-content:center;
    color: var(--muted);
}
.icon-btn:hover{
    background: var(--dangerSoft);
    color: var(--danger);
}

/* Footer */
.panel-footer{
    display:flex;
    justify-content: space-between;
    align-items:center;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
    margin-top: 14px;
}
.meta{
    color: var(--muted);
    font-weight: 700;
    font-size: .85rem;
}
.footer-actions{
    display:flex;
    gap:10px;
}
@media (max-width: 768px){
    .panel-footer{ flex-direction: column; align-items: stretch; }
    .footer-actions{ width:100%; }
    .footer-actions .btn{ flex:1; justify-content:center; }
}