﻿.welcome-page .logo {
  width: 64px;
}

.icon-banner {
  width: 32px;
}

.body-container {
  margin-top: 60px;
  padding-bottom: 40px;
}

.welcome-page li {
  list-style: none;
  padding: 4px;
}

.logged-out-page iframe {
  display: none;
  width: 0;
  height: 0;
}

.grants-page .card {
  margin-top: 20px;
  border-bottom: 1px solid lightgray;
}
.grants-page .card .card-title {
  font-size: 120%;
  font-weight: bold;
}
.grants-page .card .card-title img {
  width: 100px;
  height: 100px;
}
.grants-page .card label {
  font-weight: bold;
}

/* Profile Page Styles */
.profile-page {
  padding-bottom: 40px;
}

.profile-header {
  display: flex;
  align-items: center;
  padding: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 25px;
  border: 3px solid rgba(255, 255, 255, 0.5);
}

.avatar-initials {
  font-size: 36px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
}

.profile-header-info h1 {
  color: #fff;
  margin: 0 0 5px 0;
  font-size: 28px;
  font-weight: 600;
}

.profile-header-info p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 16px;
}

.profile-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.profile-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.profile-card .card-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 18px 20px;
  border-radius: 12px 12px 0 0;
}

.profile-card .card-header h5 {
  margin: 0;
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

.profile-card .card-header h5 .glyphicon {
  margin-right: 8px;
  color: #667eea;
}

.profile-card .card-body {
  padding: 20px;
}

.profile-info-card .info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.profile-info-card .info-item:last-child {
  border-bottom: none;
}

.profile-info-card .info-label {
  color: #666;
  font-size: 14px;
}

.profile-info-card .info-value {
  font-weight: 500;
  color: #333;
  text-align: right;
  word-break: break-all;
}

.telegram-list .list-group-item {
  border: none;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.telegram-list .list-group-item:last-child {
  border-bottom: none;
}

.telegram-name {
  font-weight: 500;
  color: #333;
  display: block;
}

.telegram-username {
  color: #0088cc;
  font-size: 13px;
}

.session-list .list-group-item {
  border: none;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.session-list .list-group-item:last-child {
  border-bottom: none;
}

.session-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.session-client {
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.session-time {
  font-size: 12px;
}

.profile-card .list-group-item-action {
  padding: 14px 20px;
  color: #555;
  transition: all 0.2s ease;
}

.profile-card .list-group-item-action:hover {
  background: #f8f9fa;
  color: #667eea;
}

.profile-card .list-group-item-action .glyphicon {
  margin-right: 10px;
  color: #667eea;
}

/* Responsive */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    padding: 25px 20px;
  }

  .profile-avatar {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .profile-header-info h1 {
    font-size: 22px;
  }
}

/* Dashboard Page Styles */
.dashboard-page {
  padding-bottom: 40px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 25px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.welcome-section h1 {
  color: #fff;
  margin: 0 0 5px 0;
  font-size: 28px;
  font-weight: 600;
}

.welcome-section p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 16px;
}

.header-actions .btn {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.header-actions .btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

/* Stats Cards */
.stats-row {
  margin-bottom: 30px;
}

.stat-card {
  display: flex;
  align-items: center;
  padding: 25px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
}

.stat-icon .glyphicon {
  font-size: 24px;
  color: #fff;
}

.stat-card-primary .stat-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card-success .stat-icon {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.stat-card-info .stat-icon {
  background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
}

.stat-card-warning .stat-icon {
  background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
}

.stat-content h3 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: #333;
}

.stat-content p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #666;
}

/* Dashboard Sections */
.dashboard-section {
  margin-bottom: 25px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

/* Quick Actions */
.quick-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 15px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-bottom: 15px;
  min-height: 120px;
}

.quick-action-card .glyphicon {
  font-size: 28px;
  margin-bottom: 10px;
}

.quick-action-card .action-title {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.quick-action-primary {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  color: #667eea;
}

.quick-action-primary:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.quick-action-success {
  background: linear-gradient(135deg, rgba(17, 153, 142, 0.1) 0%, rgba(56, 239, 125, 0.1) 100%);
  color: #11998e;
}

.quick-action-success:hover {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(17, 153, 142, 0.3);
}

.quick-action-info {
  background: linear-gradient(135deg, rgba(33, 147, 176, 0.1) 0%, rgba(109, 213, 237, 0.1) 100%);
  color: #2193b0;
}

.quick-action-info:hover {
  background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(33, 147, 176, 0.3);
}

.quick-action-warning {
  background: linear-gradient(135deg, rgba(242, 153, 74, 0.1) 0%, rgba(242, 201, 76, 0.1) 100%);
  color: #f2994a;
}

.quick-action-warning:hover {
  background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 153, 74, 0.3);
}

/* Activity Card */
.activity-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 0;
}

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.activity-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s ease;
}

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

.activity-item:hover {
  background: #fafafa;
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.activity-item.success .activity-icon {
  background: rgba(56, 239, 125, 0.15);
  color: #11998e;
}

.activity-item.failed .activity-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.activity-content {
  flex: 1;
}

.activity-title {
  display: block;
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.activity-desc {
  display: block;
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

.activity-time {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
}

/* Info Card */
.info-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 20px;
}

.info-card h4 {
  margin: 0 0 15px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.info-label {
  font-size: 13px;
  color: #666;
}

.info-value {
  font-size: 13px;
  font-weight: 500;
  color: #333;
}

.info-value.small {
  font-size: 11px;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-link {
  font-size: 13px;
  color: #667eea;
  text-decoration: none;
}

.info-link:hover {
  text-decoration: underline;
}

/* Admin Links */
.admin-links {
  padding: 10px;
}

.admin-link {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  color: #555;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  margin-bottom: 5px;
}

.admin-link:last-child {
  margin-bottom: 0;
}

.admin-link:hover {
  background: #f8f9fa;
  color: #667eea;
}

.admin-link .glyphicon {
  margin-right: 12px;
  font-size: 16px;
  color: #667eea;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.empty-state .glyphicon {
  font-size: 40px;
  margin-bottom: 15px;
  opacity: 0.5;
}

.empty-state p {
  margin: 0;
  font-size: 14px;
}

/* Guest Dashboard */
.guest-dashboard {
  text-align: center;
}

.guest-hero {
  padding: 60px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  margin-bottom: 40px;
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
}

.hero-logo {
  width: 80px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.guest-hero h1 {
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 10px;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  margin-bottom: 25px;
}

.hero-actions .btn {
  padding: 12px 30px;
  font-size: 16px;
}

.hero-actions .btn .glyphicon {
  margin-right: 8px;
}

/* Feature Cards */
.feature-cards {
  margin-bottom: 40px;
}

.feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px 25px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 20px;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon .glyphicon {
  font-size: 28px;
  color: #fff;
}

.feature-icon-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.feature-icon-success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.feature-icon-info {
  background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

.guest-info {
  margin-top: 30px;
}

/* Dashboard Responsive */
@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .welcome-section h1 {
    font-size: 22px;
  }

  .header-actions {
    margin-top: 15px;
  }

  .stat-card {
    margin-bottom: 15px;
  }

  .quick-action-card {
    min-height: 100px;
    padding: 20px 10px;
  }

  .guest-hero {
    padding: 40px 20px;
  }

  .guest-hero h1 {
    font-size: 24px;
  }
}
