/**
 * SİNA - Custom Stylesheet
 * Ana stil dosyası
 */

/* ====================================
   GENEL STILLER
   ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2C3E50;
    --secondary-color: #3498DB;
    --success-color: #27AE60;
    --warning-color: #F39C12;
    --danger-color: #E74C3C;
    --light-bg: #ECF0F1;
    --dark-text: #2C3E50;
    --light-text: #7F8C8D;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #F8F9FA;
    color: var(--dark-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ====================================
   NAVBAR ÖZEL STİLLER
   ==================================== */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
}

.nav-link.active {
    font-weight: 600;
    border-bottom: 3px solid white;
}

/* ====================================
   MAIN CONTENT AREA
   ==================================== */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

.page-header {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--light-text);
    margin-bottom: 0;
}

/* ====================================
   CARD COMPONENTS
   ==================================== */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    border-radius: 10px 10px 0 0 !important;
    padding: 1rem 1.5rem;
}

/* ====================================
   BUTTONS
   ==================================== */
.btn {
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #2980B9;
    border-color: #2980B9;
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

/* ====================================
   TABLES
   ==================================== */
.table-responsive {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.data-table {
    margin-bottom: 0;
}

.data-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.data-table thead th {
    font-weight: 600;
    border: none;
    padding: 1rem;
    vertical-align: middle;
}

.data-table tbody td {
    padding: 12px 15px;      
    vertical-align: middle !important; 
}


.indicator-cell {
    display: flex;
    align-items: center;      
    justify-content: space-between; 
    width: 100%;
}

.data-table tbody tr {
    transition: background-color 0.2s ease;
}

.data-table tbody tr:hover {
    background-color: #F8F9FA;
}

.data-table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

/* Excel benzeri tablo */
.excel-table {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    padding: 1rem;
}

.excel-table table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.excel-table th,
.excel-table td {
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    min-width: 120px;
}

.excel-table th {
    background: #f8f9fa;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.excel-table td.category-name {
    background: #f8f9fa;
    font-weight: 600;
    position: sticky;
    left: 0;
    z-index: 5;
}

.excel-table input[type="text"],
.excel-table input[type="number"] {
    width: 100%;
    border: 1px solid transparent;
    padding: 4px 8px;
    transition: all 0.2s ease;
}

.excel-table input:focus {
    border-color: var(--secondary-color);
    outline: none;
    background: #E8F4FD;
}

/* ====================================
   FORMS
   ==================================== */
.form-control:focus,
.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--dark-text);
}

/* ====================================
   STATISTICS FILTERS
   ==================================== */
.filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.filter-section .form-label {
    font-weight: 600;
    color: var(--primary-color);
}

/* ====================================
   CHARTS
   ==================================== */
.chart-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.chart-wrapper {
    position: relative;
    height: 400px;
}

/* ====================================
   LOGIN PAGE
   ==================================== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.login-card {
    max-width: 450px;
    width: 100%;
    margin: 2rem;
}

.login-card .card-body {
    padding: 2.5rem;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo i {
    font-size: 4rem;
    color: var(--secondary-color);
}

.login-logo-img {
    height: 4rem;
    width: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.login-logo h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 1rem;
}

/* ====================================
   DASHBOARD STATS CARDS
   ==================================== */
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-card .stat-icon {
    font-size: 3rem;
    opacity: 0.8;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.stat-card .stat-label {
    color: var(--light-text);
    font-weight: 500;
}

/* ====================================
   ALERTS & NOTIFICATIONS
   ==================================== */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ====================================
   FOOTER
   ==================================== */
footer {
    margin-top: auto;
    background: white;
}

/* ====================================
   LOADING SPINNER
   ==================================== */
.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(0,0,0,0.1);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.5rem;
    }

    .stat-card {
        margin-bottom: 1rem;
    }

    .excel-table {
        font-size: 0.875rem;
    }

    .chart-wrapper {
        height: 300px;
    }
}

/* ====================================
   UTILITY CLASSES
   ==================================== */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary-color) !important;
}

.shadow-sm-custom {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.shadow-md-custom {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.shadow-lg-custom {
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* ====================================
   SCROLLBAR STYLING
   ==================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}



.indicator-text {
    color: #ffffff;
    font-weight: 500;         
    letter-spacing: 0.3px;    
    font-size: 0.95rem;      
    text-shadow: 0 1px 2px rgba(0,0,0,0.1); 
}

.action-icons i {
    opacity: 0.8;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-left: 8px;
}

.action-icons i:hover {
    opacity: 1;
    transform: scale(1.1);
}

.cell-input::-webkit-outer-spin-button,
.cell-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cell-input {
    -moz-appearance: textfield;
}

.category-name-cell {
    white-space: nowrap !important;
    min-width: 250px;
    vertical-align: middle !important;
}


.table-grid td {
    height: 45px !important; 
    padding: 0 !important;
    overflow: hidden;
}

.cell-input {
    height: 45px !important;
    line-height: 45px !important;
    border: none !important;
}