/* --- AKKIN.NET TEMA GENEL STİLLERİ --- */
body {
    background-color: #f8f9fa; /* Tüm sayfa arka planını hafif gri yapar */
}

/* --- FOOTER TASARIMI (KUTU VE OVAL) --- */
#footer {
  background-color: transparent;
  padding-top: 30px;
  padding-bottom: 30px;
}
#footer .container {
  max-width: 1400px; /* Footer genişliğini ayarlar */
}
.footer-box {
  background-color: #0d1023; /* Koyu mavi/lacivert arka plan */
  border-radius: 20px;
  overflow: hidden;
}
.footer-box .footer-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-box h6 {
  font-weight: 600;
  color: #ffffff;
}
.footer-box .footer-links li {
  margin-bottom: 10px;
}
.footer-box .footer-links a {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-box .footer-links a:hover {
  color: #ffffff;
}
.footer-box .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  margin-right: 10px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.footer-box .social-icons a:hover {
  background-color: #5fcfb9;
  color: #ffffff;
}
.footer-box .footer-bottom p {
  font-size: 0.9em;
}

/* --- MODERN FATURA TASARIMI (viewinvoice.tpl) --- */
.invoice-container {
    max-width: 900px;
    margin: 40px auto;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 40px;
    border-top: 5px solid #5fcfb9;
}
.invoice-header-new {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 25px;
    margin-bottom: 30px;
}
.invoice-logo img {
    max-width: 200px;
}
.invoice-details {
    text-align: right;
}
.invoice-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
}
.invoice-meta p {
    margin: 0;
    font-size: 1rem;
    color: #555;
}
.invoice-status span {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 15px;
}
.invoice-status .paid { background-color: #28a745; }
.invoice-status .unpaid { background-color: #ffc107; color:#333; }
.invoice-status .cancelled { background-color: #6c757d; }
.invoice-status .refunded { background-color: #17a2b8; }
.invoice-status .draft { background-color: #adb5bd; }
.invoice-status .pending { background-color: #fd7e14; }
.invoice-col address {
    line-height: 1.7;
}
.invoice-col strong {
    color: #333;
}
.invoice-container .card.bg-default {
    border: none;
    box-shadow: none;
}
.invoice-container .table thead {
    background-color: #f8f9fa;
}
.invoice-container .table thead td strong {
    color: #333;
    font-weight: 600;
}
.invoice-container .table td, .invoice-container .table th {
    padding: 15px !important;
    vertical-align: middle;
}
.invoice-container .table tbody tr:nth-of-type(even) {
    background-color: #fcfcfc;
}
.invoice-container .table .total-row {
    font-weight: 600;
    color: #333;
}
.invoice-container .table tbody tr:last-child {
    background-color: #f1f5f9;
    font-size: 1.1rem;
    font-weight: bold;
}
.invoice-container .table tbody tr:last-child td {
    border-top: 2px solid #5fcfb9;
}
.payment-btn-container .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
}
.transactions-container {
    margin-top: 30px;
}
.invoice-container > .d-print-none {
    margin-top: 30px;
}
.invoice-container > hr {
    display: none;
}

/* --- MODERN DESTEK TALEBİ TASARIMI (viewticket.tpl) --- */
.modern-ticket-view {
    margin-bottom: 30px;
}
.modern-ticket-view + .card-title, .view-ticket {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}
.view-ticket .card-body.p-3.bg-primary-light, .view-ticket > .card-body {
    padding: 0 !important;
}
.modern-ticket-view .ticket-header-modern {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}
.modern-ticket-view .ticket-id {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}
.modern-ticket-view .ticket-subject {
    font-size: 1.6rem;
    font-weight: 700;
    color: #343a40;
    margin: 5px 0 0 0;
}
.modern-ticket-view .ticket-header-right .btn {
    margin-left: 10px;
}
.modern-ticket-view .ticket-meta-data {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    background-color: #e9ecef;
    padding: 1px;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    margin-bottom: 30px;
}
.modern-ticket-view .meta-item {
    background-color: #fff;
    padding: 15px;
    text-align: center;
}
.modern-ticket-view .meta-item span {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
}
.modern-ticket-view .meta-item strong {
    font-size: 1rem;
    color: #343a40;
    font-weight: 600;
}
.modern-ticket-view .ticket-conversation {
    padding: 0 10px;
}
.modern-ticket-view .ticket-reply-bubble {
    display: flex;
    margin-bottom: 25px;
    max-width: 85%;
}
.modern-ticket-view .reply-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.modern-ticket-view .reply-content {
    border-radius: 15px;
    padding: 15px 20px;
}
.modern-ticket-view .reply-content .posted-by {
    margin-bottom: 10px;
}
.modern-ticket-view .posted-by-name {
    font-weight: 700;
}
.modern-ticket-view .posted-on {
    font-size: 0.8rem;
    margin-left: 10px;
}
.modern-ticket-view .message {
    line-height: 1.7;
}
/* Destek Ekibi Mesajları (SOL TARAF) */
.modern-ticket-view .ticket-reply-bubble.staff {
    align-self: flex-start;
}
.modern-ticket-view .staff .reply-avatar {
    margin-right: 15px;
    background-color: #d1f3eb;
    color: #5fcfb9;
}
.modern-ticket-view .staff .reply-content {
    background-color: #5fcfb9;
    color: #fff;
}
.modern-ticket-view .staff .posted-by-name, 
.modern-ticket-view .staff .posted-on, 
.modern-ticket-view .staff .message {
    color: #fff;
}
/* Müşteri Mesajları (SAĞ TARAF) */
.modern-ticket-view .ticket-reply-bubble.client {
    margin-left: auto;
    flex-direction: row-reverse;
}
.modern-ticket-view .client .reply-avatar {
    margin-left: 15px;
    color: #0d6efd;
}
.modern-ticket-view .client .reply-content {
    background-color: #f1f3f5;
    color: #495057;
}
.modern-ticket-view .client .posted-by-name {
    color: #343a40;
}
.modern-ticket-view .client .posted-on {
    color: #6c757d;
}
.modern-ticket-view .attachments {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.1);
}
.modern-ticket-view .staff .attachments {
    border-top-color: rgba(255,255,255,0.2);
}
.modern-ticket-view .attachment-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}
.modern-ticket-view .attachment-list a {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
}
.modern-ticket-view .attachment-list a:hover {
    opacity: 1;
    text-decoration: underline;
}
.modern-ticket-view + #ticketReplyContainer.card {
    border: 1px solid #dee2e6;
    border-radius: 12px;
}
