/* =========================================================
   GLOBAL DESIGN SYSTEM
========================================================= */

:root{
  --brand: #0d6efd;
  --brand-soft: rgba(13,110,253,.08);
  --brand-border: rgba(13,110,253,.18);

  --success: #198754;
  --danger: #dc3545;
  --warning: #ffc107;

  --bg: #f6f8fb;
  --card-bg: #ffffff;
  --border: rgba(0,0,0,.08);
  --text-muted: rgba(0,0,0,.55);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 20px;

  --shadow-sm: 0 4px 12px rgba(0,0,0,.05);
  --shadow: 0 8px 24px rgba(0,0,0,.06);
  --card-radius: 18px;
}

/* =========================================================
   BASE
========================================================= */

body{
  background: radial-gradient(1200px 600px at 10% 10%, rgba(13, 110, 253, .10), transparent 60%), radial-gradient(900px 500px at 90% 0%, rgba(32, 201, 151, .10), transparent 55%), #f6f8fb;
  color: #1f2937;
  font-size: 15px;
}

.card-soft{
  border: 0;
  border-radius: var(--card-radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.merged-btn{
  border-radius: 10px !important;
}

a{
  text-decoration: none;
}

.text-muted{
  color: var(--text-muted) !important;
}

/* =========================================================
   NAVBAR
========================================================= */

.navbar{
  box-shadow: var(--shadow-sm);
}

.navbar .btn{
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 500;
}

.navbar-brand{
  letter-spacing: -.3px;
}

/* =========================================================
   CARDS
========================================================= */

.card,
.card-soft{
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.card-soft{
  border: none;
}

.card-title{
  font-weight: 700;
  letter-spacing: -.2px;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn{
  border-radius: 999px;
}

.btn-outline-primary{
  border-color: var(--brand-border);
}

.btn-outline-primary:hover{
  background: var(--brand);
  color: #fff;
}

.btn-soft{
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  color: var(--brand);
}

.btn-soft:hover{
  background: var(--brand);
  color: #fff;
}

/* =========================================================
   BADGES
========================================================= */

.badge{
  border-radius: 999px;
  padding: .35rem .6rem;
  font-weight: 500;
}

.badge-soft{
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand-border);
}

/* =========================================================
   TABLES
========================================================= */

.table{
  font-size: 14px;
}

.table thead th{
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.table td{
  vertical-align: middle;
}

/* =========================================================
   FORMS
========================================================= */

.form-control,
.form-select{
  border-radius: 999px;
  padding: 10px 14px;
  border-color: var(--border);
}

.form-control:focus,
.form-select:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 .15rem var(--brand-soft);
}

/* =========================================================
   FOLDER / FILE CARDS
========================================================= */

.folder-card,
.file-card{
  transition: transform .15s ease, box-shadow .15s ease;
}

.folder-card:hover,
.file-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0,0,0,.08);
}

.folder-icon,
.file-icon{
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 26px;
}

/* =========================================================
   LIST / MOBILE CARDS
========================================================= */

.list-card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}

.list-card + .list-card{
  margin-top: 10px;
}

/* =========================================================
   ALERTS
========================================================= */

.alert{
  border-radius: var(--radius);
  border: none;
  box-shadow: var(--shadow-sm);
}

/* =========================================================
   ADMIN / USERS
========================================================= */

.admin-page-title{
  font-weight: 800;
  letter-spacing: -.3px;
}

.user-row{
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.user-row:last-child{
  border-bottom: none;
}

.thumb-img{
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  background: #fff;
}
.preview-thumb:focus{ outline: none; }

.file-icon{
  width: 56px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  color:#6c757d;
}
.file-icon i{ font-size: 18px; }


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px){
  .navbar .btn span{
    display: none;
  }

  .card,
  .card-soft{
    border-radius: var(--radius);
  }

  .table{
    font-size: 13px;
  }
}

