/* assets/style.css */

:root {
    --primary: #003366;
    /* EDAŞ Mavisi */
    --secondary: #ffcc00;
    /* Enerji Sarısı */
    --text: #333;
    --bg: #f4f6f9;
    --white: #ffffff;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --border: #ddd;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Admin Header */
.admin-header {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.admin-header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary);
}

.admin-header nav a {
    color: var(--white);
    text-decoration: none;
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.admin-header nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.admin-header nav a.active {
    background: rgba(255, 255, 255, 0.2);
}

/* Admin Content */
.admin-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-content {
    padding: 2rem;
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Cards & Tables */
.card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
}

tr:hover {
    background: #f1f1f1;
}

.passive-row {
    opacity: 0.6;
    background: #f9f9f9;
}

/* Buttons & Badges */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
}

.btn.primary {
    background: var(--primary);
    color: var(--white);
}

.btn.success {
    background: var(--success);
    color: var(--white);
}

.btn.danger {
    background: var(--danger);
    color: var(--white);
}

.btn.secondary {
    background: #6c757d;
    color: var(--white);
}

.btn.sm {
    padding: 4px 8px;
    font-size: 0.8rem;
}

.btn:hover {
    opacity: 0.9;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.passive {
    background: #f8d7da;
    color: #721c24;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
}

.block {
    display: block;
    width: 100%;
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary), #001f3f);
}

.login-container {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.login-container h1 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Alerts */
.alert {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Public QR Page */
.public-page {
    background: #e9ecef;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.verification-container {
    width: 100%;
    max-width: 420px;
}

.verification-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 6px solid var(--border);
}

/* Status Variants */
.verification-card.success {
    border-top-color: var(--success);
}

.verification-card.error {
    border-top-color: var(--danger);
}

.verification-card.warning {
    border-top-color: var(--warning);
}

.logo-area {
    background: #fff;
    padding: 2rem 1rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}

/* Sarıoğlu Logo Styles */
.company-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.bolt-icon {
    color: var(--secondary);
    font-size: 2rem;
}

.light-text {
    font-weight: 300;
    color: #555;
}

.status-title {
    margin: 1rem 0;
    font-size: 1.4rem;
    color: #333;
}

.success-icon {
    font-size: 3.5rem;
    color: var(--success);
    margin-top: 1.5rem;
}

.error-icon {
    font-size: 3.5rem;
    color: var(--danger);
    margin-top: 1.5rem;
}

/* New Single Column Layout */
.details-list {
    margin: 1.5rem 0;
    text-align: center;
}

.detail-item {
    margin-bottom: 1.2rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.8rem;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    word-break: break-word;
}

.detail-value.onay-no {
    font-size: 1.3rem;
    /* Daha büyük */
    font-weight: 800;
    color: #003366;
    /* Primary Color */
    letter-spacing: -0.5px;
}

.qr-area {
    background: #fbfbfb;
    padding: 2rem;
    margin-top: 0;
}

.qr-area img {
    border: 1px solid #eee;
    padding: 5px;
    background: #fff;
    border-radius: 4px;
}

.qr-link {
    font-size: 0.7rem;
    color: #bbb;
    margin-top: 1rem;
    word-break: break-all;
}

.verification-note {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.success-text {
    color: var(--success);
}

/* Footer kaldırıldı, gerekirse stilini de silebiliriz ama kalsın */
.footer {
    display: none;
}

@media (max-width: 600px) {

    .details-table th,
    .details-table td {
        display: block;
        width: 100%;
        text-align: center;
        border: none;
    }

    .details-table th {
        padding-bottom: 2px;
        margin-top: 10px;
        font-size: 0.85rem;
    }

    .details-table td {
        padding-top: 0;
        font-size: 1.1rem;
    }
}
/* Copy Button Styles */
.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 5px;
    padding: 0;
    line-height: 1;
    vertical-align: middle;
    transition: transform 0.2s;
}

.copy-btn:hover {
    transform: scale(1.2);
}

.copy-btn:active {
    transform: scale(0.9);
}
