body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 600px;
}

h1 {
    text-align: center;
    color: #1a73e8;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

h2 {
    font-size: 1.2rem;
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

select, input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
}

button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-add { background-color: #28a745; }
.btn-add:hover { background-color: #218838; }

.btn-sale { background-color: #1a73e8; }
.btn-sale:hover { background-color: #1557b0; }

.btn-report { background-color: #6c757d; }
.btn-report:hover { background-color: #5a6268; }

.btn-premium {
    background: linear-gradient(45deg, #ff9800, #ff5722);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}
.btn-premium:hover {
    background: linear-gradient(45deg, #fb8c00, #f4511e);
}

.header-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 10px;
}

#authContainer input, #registerContainer input {
    margin-bottom: 10px;
}

p {
    text-align: center;
    font-size: 14px;
    color: #666;
}

a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: bold;
}

.stock-list ul {
    list-style: none;
    padding: 0;
}

.stock-list li {
    padding: 10px;
    background: #f8f9fa;
    margin-bottom: 5px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px 4px; /* Padding azaltıldı */
    text-align: left;
    font-size: 13px; /* Genel tablo yazı boyutu küçültüldü */
}

th {
    background-color: #f8f9fa;
}

.flex-input {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.settings-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.settings-list li {
    background: #f1f3f4;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-delete {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

/* Tab Menü Stilleri */
.tab-menu {
    display: flex;
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tab-btn {
    flex: 1;
    background: none;
    color: #666;
    padding: 15px;
    border-radius: 0;
    font-size: 14px;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: #f8f9fa;
    color: #1a73e8;
}

.tab-btn.active {
    color: #1a73e8;
    border-bottom: 3px solid #1a73e8;
    background: #f0f7ff;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modal Stilleri */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    margin: 0;
}

/* Rapor Düzeni İyileştirmesi */
.report-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.report-table-mini {
    font-size: 11px;
    width: 100%;
}

.report-table-mini td {
    padding: 5px;
}

.no-margin {
    margin: 0 !important;
}

@media (max-width: 480px) {
    .report-summary-grid {
        grid-template-columns: 1fr; /* Mobilde alt alta gelsin */
    }

    /* Mobilde tabloyu sıkıştır */
    th, td {
        padding: 6px 3px;
        font-size: 11px;
    }

    /* Para sütununun taşmasını önlemek için */
    td:last-child {
        white-space: nowrap;
    }

    body {
        padding: 10px;
    }
}
