/* Tickets pages styles using brand_overrides.css theme variables */

/* Generic spacing utilities */
.m-t-30 { margin-top: 30px !important; }
.m-b-30 { margin-bottom: 30px !important; }

/* Header card on tickets index */
.header-card { background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); padding: 1rem 1.5rem; margin-bottom: 1.5rem; width: 100%; max-width: 520px; display: flex; justify-content: space-between; align-items: center; }
.header-card h2 { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin: 0; }
.header-card button { padding: .5rem 1rem; border: none; border-radius: 8px; background: var(--primary); color: #fff; font-weight: 600; cursor: pointer; transition: background .2s; }
.header-card button:hover { background: var(--primary-dark); }

/* Cards grid (promo style content on tickets index) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; width: 100%; max-width: 1100px; }
.card { border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.06); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column; background: var(--bg-light); border: 1px solid var(--border-color); }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.10); }
.icon { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.25rem; background: var(--bg-off-white); border-bottom: 1px solid var(--border-color); }
.icon i { width: 32px; height: 32px; color: var(--primary); }
.icon svg { width: 32px; height: 32px; stroke: var(--primary); }
.platename { margin-top: .6rem; font-size: 1.05rem; font-weight: 700; color: var(--text-primary); text-transform: uppercase; letter-spacing: .5px; }
.info { background: var(--bg-light); padding: 1rem; text-align: center; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.price { font-size: 1rem; margin-bottom: .75rem; font-weight: 600; color: var(--text-secondary); }
.info a { display: inline-block; text-decoration: none; padding: .6rem 1.1rem; font-size: .95rem; border-radius: 8px; transition: background .2s,color .2s; color: #fff; font-weight: 600; background: var(--primary); }
.info a:hover { background: var(--primary-dark); }

/* Ticket list panel */
.card .card-header { background: var(--bg-light); border-bottom: 1px solid var(--border-color); }
.card .card-title { color: var(--text-primary); }
.ticket-lists .item { border-bottom: 1px solid var(--border-color); padding: 10px 6px; }
.ticket-lists .item .subject { color: var(--text-primary); }
.ticket-lists .item .email { color: var(--text-secondary); font-size: .9rem; }
.ticket-lists .item .time small { color: var(--text-secondary); }
.ticket-card-body { height: calc(100vh - 180px); overflow: auto; }

/* Ticket details / conversation (update view) */
#frame .content { height: 100%; overflow: hidden; position: relative; }
#frame .content .messages { height: auto; min-height: calc(100% - 93px); max-height: calc(100% - 93px); }
#frame .content .messages ul { list-style: none; margin: 0; padding: 0; }
#frame .content .messages ul li:nth-last-child(1) { margin-bottom: 20px; }
#frame .content .messages ul li { display: inline-block; clear: both; margin: 15px; width: calc(100% - 25px); font-size: 0.95rem; }
#frame .content .messages ul li img { width: 40px; height: 40px; border-radius: 50%; float: left; }
#frame .content .messages ul li.replies img { float: right; margin: 0 0 0 8px; }
#frame .content .messages ul li .message { position: relative; }
#frame .content .messages ul li .msg-content { display: inline-block; padding: 10px 14px; border-radius: 10px; max-width: 390px; min-width: 255px; line-height: 1.35; background: var(--bg-off-white); color: var(--text-primary); border: 1px solid var(--border-color); }
#frame .content .messages ul li.sent .msg-content { background: var(--bg-card); }
#frame .content .messages ul li.replies .msg-content { background: #ed4d5f; color: #fff; border: none; }
#frame .content .messages ul li.sent .message .msg-footer { position: absolute; left: 90px; }
#frame .content .messages ul li.replies .message .msg-footer { position: absolute; right: 70px; }
.ticket-title { color: var(--text-primary); }

/* Bottom nav (mobile shortcut present on tickets/add) */
.bottom-nav { display: flex; justify-content: space-around; align-items: center; padding: 12px 0; background: var(--bg-off-white); position: fixed; bottom: 0; width: 100%; max-width: 480px; left: 50%; transform: translateX(-50%); box-shadow: 0px -2px 5px rgba(0,0,0,0.08); z-index: 100; border-top: 1px solid var(--border-color); }
.nav-btn { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--text-secondary); font-size: 0.75rem; transition: color .2s ease; }
.nav-btn i { width: 20px; height: 20px; margin-bottom: 4px; color: currentColor; }
.nav-btn.active, .nav-btn:hover { color: var(--primary); }

/* Form inputs consistent with theme */
.tickets .form-control, .tickets .form-control.square, .tickets textarea.form-control, .tickets select.form-control { background: var(--bg-off-white); color: var(--text-primary); border: 1px solid var(--border-color); border-radius: 8px; }
.tickets .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 0.2rem rgba(76,175,80,0.15); }

/* Buttons */
.btn-primary, .btn-info { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover, .btn-info:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* Add page specific */
.container.tickets-add { background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 12px; padding: 24px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); max-width: 420px; }
.tickets-add .form-group { margin-bottom: 14px; }
.price-display { background: var(--bg-off-white); color: var(--primary); border: 1px solid var(--border-color); border-radius: 8px; padding: 12px; text-align: center; font-size: 1.1rem; font-weight: 600; }
.tickets-add .price-display { margin: 10px 0 12px; }
.btn-pay { width: 100%; background: var(--primary); color: #fff; border: none; padding: 12px; border-radius: 8px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background .2s, transform .2s; }
.btn-pay:hover { background: var(--primary-dark); transform: translateY(-1px); }

@media (max-width: 600px) {
  .header-card { max-width: 100%; flex-direction: column; text-align: center; gap: .5rem; }
  .cards { grid-template-columns: 1fr; }
}
