﻿/* ===================================
   SIMPLE & CLEAN DESIGN
   Mali MÃ¼ÅŸavir Portal - User Friendly
   =================================== */

:root {
  /* Simple Color Palette */
  --primary: #5b7cff;
  --primary-light: #8fa5ff;
  --primary-dark: #3d5fd8;

  --bg-main: #f8f9fc;
  --bg-white: #ffffff;
  --bg-hover: #f0f2f8;

  --text-dark: #2d3748;
  --text-medium: #4a5568;
  --text-light: #718096;

  --border: #e2e8f0;
  --border-dark: #cbd5e0;

  --success: #48bb78;
  --warning: #ed8936;
  --danger: #f56565;

  /* Spacing */
  --space-xs: 0.375rem;
  --space-sm: 0.5rem;
  --space-md: 0.75rem;
  --space-lg: 1rem;
  --space-xl: 1.25rem;
  --space-2xl: 1.5rem;

  /* Border Radius */
  --radius: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* ===================================
   BASE STYLES
   =================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  background: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 16px;
}

/* ===================================
   LAYOUT
   =================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding: var(--space-xl) 0;
}

/* ===================================
   NAVIGATION
   =================================== */

.navbar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) 0;
  box-shadow: var(--shadow-sm);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.user-details {
  text-align: right;
}

.user-name {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.user-company {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  line-height: 1.5;
  letter-spacing: 0.2px;
}

.btn-primary {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
  background: white;
  color: #2c3e50;
  border: 2px solid #e9ecef;
}

.btn-secondary:hover {
  background: #f8f9fa;
  border-color: #3498db;
  color: #3498db;
}

.btn-success {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(39, 174, 96, 0.2);
}

.btn-success:hover {
  background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.btn-danger {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(231, 76, 60, 0.2);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1.05rem;
}

/* ===================================
   FORMS
   =================================== */

.form-group { margin-bottom: 0.5rem; }

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-hint {
  display: block;
  margin-top: var(--space-xs);
  font-size: 0.875rem;
  color: var(--text-light);
}

.form-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dark);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 124, 255, 0.1);
}

.form-input::placeholder {
  color: var(--text-light);
}

select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a5568' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

select.form-input option {
  background: var(--bg-white);
  color: var(--text-dark);
  padding: 0.5rem;
}

/* ===================================
   CARDS
   =================================== */

.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.card-header {
  padding: var(--space-sm);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--border);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.card-subtitle {
  font-size: 0.95rem;
  color: var(--text-medium);
  margin-top: var(--space-xs);
}

/* ===================================
   DOCUMENT CARDS
   =================================== */

.doc-list {
  display: grid;
  gap: var(--space-md);
}

.doc-item {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  transition: all 0.2s ease;
  cursor: pointer;
}

.doc-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.doc-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.doc-info {
  flex: 1;
  min-width: 0;
}

.doc-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.doc-meta {
  display: flex;
  gap: var(--space-lg);
  font-size: 0.875rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.doc-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.doc-actions {
  flex-shrink: 0;
}

/* ===================================
   SIDEBAR
   =================================== */

.dashboard-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

. sidebar {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: sticky;
  top: calc(var(--space-xl) + 60px);
}

.sidebar-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
}

.category-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.category-link {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  color: var(--text-medium);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.category-link:hover {
  background: var(--bg-hover);
  color: var(--text-dark);
}

.category-link.active {
  background: var(--primary);
  color: white;
  font-weight: 500;
}

.category-badge {
  margin-left: auto;
  background: var(--bg-hover);
  color: var(--text-medium);
  padding: 0.125rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

.category-link.active .category-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* ===================================
   LOGIN PAGE
   =================================== */

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
  /* Background removed - will be set in login.html */
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
  box-shadow: var(--shadow-lg);
}

.login-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.login-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
}

.login-subtitle {
  color: var(--text-medium);
  font-size: 0.95rem;
}

.login-footer {
  margin-top: var(--space-xl);
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.login-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.login-link:hover {
  text-decoration: underline;
}

/* ===================================
   ALERTS
   =================================== */

.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius);
  padding: var(--space-sm);
  border-left: 4px solid;
  font-size: 0.95rem;
}

.alert-error {
  background: #fff5f5;
  border-color: var(--danger);
  color: #c53030;
}

.alert-success {
  background: #f0fff4;
  border-color: var(--success);
  color: #2f855a;
}

.alert-info {
  background: #ebf8ff;
  border-color: var(--primary);
  color: #2c5282;
}

/* ===================================
   STATS
   =================================== */

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-sm);
  padding: var(--space-sm);
}

.stat-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0.5rem;
  text-align: center;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  color: var(--text-medium);
  font-size: 0.95rem;
  margin-top: var(--space-sm);
}

/* ===================================
   TABS
   =================================== */

.tabs {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-bottom: 2px solid var(--border);
}

.tab-btn {
  padding: var(--space-md) var(--space-lg);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-medium);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: -2px;
}

.tab-btn:hover {
  color: var(--text-dark);
  background: var(--bg-hover);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ===================================
   BADGES
   =================================== */

.badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-primary {
  background: var(--primary);
  color: white;
}

.badge-success {
  background: var(--success);
  color: white;
}

/* ===================================
   UTILITIES
   =================================== */

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-light);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-sm);
}

.mb-lg {
  padding: var(--space-sm);
}

.mb-xl {
  padding: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.flex {
  display: flex;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-md {
  gap: var(--space-md);
}

.w-full {
  width: 100%;
}

.hidden {
  display: none;
}

/* ===================================
   GRID
   =================================== */

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* ===================================
   MODAL
   =================================== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none; /* Başlangıçta gizli */
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
}

/* Modal açıkken */
.modal[style*="display: flex"] {
  display: flex;
}

.modal-content {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

/* ===================================
   CLIENT ITEM
   =================================== */

.client-item {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-sm);
  transition: all 0.2s ease;
}

.client-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.client-info h4 {
  margin: 0 0 0.25rem 0;
  color: var(--text-dark);
  font-size: 1.05rem;
}

.client-info p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-medium);
}

/* ===================================
   EMPTY STATE
   =================================== */

.empty-state {
  text-align: center;
  padding: var(--space-sm);
  color: var(--text-light);
}

.empty-icon {
  font-size: 4rem;
  padding: var(--space-sm);
  opacity: 0.5;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .category-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: var(--space-sm);
  }

  .category-link {
    white-space: nowrap;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .navbar-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .doc-item {
    flex-direction: column;
    text-align: center;
  }

  .doc-actions {
    width: 100%;
  }

  .doc-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .user-info {
    width: 100%;
    justify-content: space-between;
  }
}



