/* assets/css/style.css - Talento სტილი */

:root {
  --bg-color: #f8fafd;
  --card-bg: #ffffff;
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --secondary: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --radius: 16px;
  --radius-lg: 24px;
  --transition: 0.2s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.5;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem;
}

/* header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-box {
  background: white;
  border-radius: 40px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.search-box input {
  border: none;
  outline: none;
  padding: 0.2rem 0.5rem;
  width: 200px;
  font-size: 0.9rem;
}

.search-box button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.user-profile {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

/* status cards */
.status-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.status-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.status-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.status-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.status-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* balance card */
.balance-card {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.balance-info h3 {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.balance-amount {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.balance-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  border: none;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn:hover {
  background: rgba(255,255,255,0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-warning {
  background: var(--warning);
  color: white;
}

/* sections */
.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.item-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.item-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.item-card .company {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.item-card .meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.item-card .badge {
  background: var(--primary-light);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
}

.item-card .expiry {
  font-size: 0.85rem;
  color: var(--warning);
  font-weight: 500;
}

/* settings list (quick menu) */
.settings-list {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  overflow: hidden;
  margin-bottom: 2rem;
}

.settings-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.settings-item:last-child {
  border-bottom: none;
}

.settings-item:hover {
  background: #f1f5f9;
}

.settings-icon {
  width: 40px;
  height: 40px;
  background: #e6f0ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: var(--primary);
  font-size: 1.2rem;
}

.settings-content h4 {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.settings-content p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.settings-arrow {
  margin-left: auto;
  color: var(--text-muted);
}

/* forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
  background: white;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* tables */
.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.table th {
  background: #f8fafc;
  text-align: left;
  padding: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: #f8fafc;
}

/* tabs */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.tablink {
  background: white;
  border: 1px solid var(--border-light);
  padding: 0.6rem 1.2rem;
  border-radius: 40px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}

.tablink.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.tabcontent {
  display: none;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* hosting items */
.hosting-item {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.hosting-item p {
  margin-bottom: 0.5rem;
}

/* password field */
.password-hidden {
  background: #f1f5f9;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: monospace;
}

.show-password {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.2rem 0.8rem;
  border-radius: 40px;
  font-size: 0.8rem;
  cursor: pointer;
  margin-left: 0.5rem;
}

.show-password:hover {
  background: var(--primary);
  color: white;
}

/* alerts */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  border-left: 4px solid transparent;
}

.success {
  background: #d1fae5;
  color: #065f46;
  border-left-color: var(--secondary);
}

.error {
  background: #fee2e2;
  color: #991b1b;
  border-left-color: var(--danger);
}

/* footer banners */
.footer-banners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.banner {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border-light);
}

.banner h4 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.banner p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* responsive */
@media (max-width: 640px) {
  .app-header {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box input {
    width: 100%;
  }
  .balance-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .balance-actions {
    width: 100%;
    justify-content: space-between;
  }
  .table {
    font-size: 0.85rem;
  }
  .table th, .table td {
    padding: 0.75rem 0.5rem;
  }
}