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

body {
  font-family: "Helvetica Neue", Roboto, Arial, "Droid Sans", sans-serif;
  background: #f7f7f7;
  min-height: 100vh;
  color: #333;
}

/* ===== HOME PAGE STYLES ===== */
.home-page {
  background: #f3f3f3;
}

.home-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.home-header {
  padding: 30px 0;
}

.home-header .home-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  max-width: 1200px;
}

.btn-login {
  background: #333;
  color: white;
  padding: 10px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.btn-login:hover {
  background: #555;
}

.hero {
  text-align: center;
  padding: 40px 0 80px;
  color: #333;
  background: #ffffff;
}

.hero-logo {
  margin-bottom: 50px;
}

.hero-logo-img {
  height: 80px;
  width: auto;
  margin-bottom: 10px;
}

.hero-logo-text {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.logo-web {
  color: #333;
}

.logo-raven {
  color: #c41e3a;
}

.hero-tagline {
  font-size: 0.9rem;
  letter-spacing: 3px;
  color: #666;
  text-transform: uppercase;
}

.hero-headline {
  font-family: 'Raleway', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 30px;
  line-height: 1.1;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #848484;
  max-width: 500px;
  margin: 0 auto 40px;
}

.hero-email {
  display: inline-block;
  font-size: 1.1rem;
  color: #1a1a1a;
  text-decoration: underline;
  font-weight: 500;
}

.hero-email:hover {
  color: #c41e3a;
}

/* Dashboard Preview */
.dashboard-preview {
  margin-top: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.preview-window {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.preview-header {
  background: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.preview-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.preview-dots .dot.red { background: #ff5f57; }
.preview-dots .dot.yellow { background: #febc2e; }
.preview-dots .dot.green { background: #28c840; }

.preview-title {
  color: #78879a;
  font-size: 13px;
  font-weight: 500;
}

.preview-stats {
  display: flex;
  justify-content: space-around;
  padding: 20px;
  background: #f7f7f7;
  border-bottom: 1px solid #eee;
}

.preview-stat {
  text-align: center;
}

.preview-stat .stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: #78879a;
}

.preview-stat .stat-label {
  font-size: 0.7rem;
  color: #78879a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.preview-table {
  padding: 0;
  overflow: hidden;
}

.preview-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.preview-table thead {
  background: #78879a;
  color: white;
}

.preview-table th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.preview-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  color: #555;
}

.preview-table td.domain {
  font-weight: 600;
  color: #333;
  text-align: left;
}

.preview-table td.service {
  text-align: left;
}

.paid-checkbox {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.preview-table td.sent {
  color: #c00;
}

.preview-table .fade-row td {
  opacity: 0.4;
}

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

.paid-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  color: white;
}

.paid-icon.paid-yes {
  background-color: #4ecdc4;
}

.paid-icon.paid-no {
  background-color: #c0392b;
}

.features {
  background: white;
  padding: 60px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  text-align: center;
  padding: 30px;
  border-radius: 8px;
  background: #f9f9f9;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.feature-card h3 {
  color: #4a6fa5;
  margin-bottom: 10px;
}

.feature-card p {
  color: #666;
  line-height: 1.6;
}

.home-footer {
  background: #f3f3f3;
  color: #999;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-primary {
  background: #4a9f4a;
  color: white;
}

.btn-primary:hover {
  background: #3d8c3d;
}

.btn-info {
  background: #5bc0de;
  color: white;
}

.btn-info:hover {
  background: #46b8da;
}

.btn-warning {
  background: #f0ad4e;
  color: white;
}

.btn-warning:hover {
  background: #ec971f;
}

.btn-danger {
  background: #d9534f;
  color: white;
}

.btn-danger:hover {
  background: #c9302c;
}

.btn-large {
  padding: 15px 40px;
  font-size: 1.1rem;
}

/* ===== LOGIN PAGE ===== */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
}

.login-logo {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo h1 {
  color: #4a6fa5;
  font-size: 2rem;
}

.login-logo p {
  color: #888;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: #4a6fa5;
}

.btn-login {
  width: 100%;
  padding: 4px 12px;
  background: #999;
  color: white;
  border: none;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 400;
  font-family: "Raleway", sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-login:hover {
  background: #bf2221;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-align: center;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: #f7f7f7;
  padding: 20px 0;
}

.stats-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.stat-item {
  text-align: center;
}

.stat-label {
  font-size: 12px;
  color: #78879a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: #78879a;
}

.stat-value.money {
  color: #78879a;
}

/* ===== APP WRAPPER ===== */
.app-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* ===== APP HEADER ===== */
.app-header {
  background: #fff;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.header-actions {
  position: absolute;
  right: 20px;
  top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-link {
  background: #fff;
  border: 1px solid #ccc;
  padding: 8px 15px;
  font-size: 10px;
  color: #666;
  text-decoration: none;
  font-family: inherit;
}

.header-link:hover {
  background: #fffea6;
  text-decoration: none;
}

.header-logout {
  margin: 0;
}

.logout-link {
  background: #fff;
  border: 1px solid #ccc;
  padding: 8px 15px;
  cursor: pointer;
  font-size: 10px;
  color: #666;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.2s;
}

.logout-link:hover {
  background: #fffea6;
  text-decoration: none;
}

.app-logo {
  height: 100px;
  width: auto;
}

.app-logo-text {
  font-family: 'Times New Roman', serif;
  font-size: 1.5rem;
  color: #c9b575;
  font-weight: bold;
  font-style: italic;
  text-align: center;
}

.app-logo-text span {
  display: block;
  font-size: 1.2rem;
  color: #a9a9a9;
}


/* ===== NAVIGATION ===== */
.navbar {
  background: #78879a;
  padding: 8px 0;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 20px;
  position: relative;
}

.page-title {
  color: white;
  font-size: 18px;
  font-weight: 600;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-buttons-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 20px;
  background: #f7f7f7;
}

.nav-buttons-row a {
  display: inline-block;
}

.nav-buttons-row img {
  height: 30px;
  width: auto;
  vertical-align: middle;
}

.add-new-btn img {
  height: 30px;
  width: auto;
}

.nav-img-btn {
  margin-left: 18px;
}

.nav-img-btn img {
  height: 30px;
  width: auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.paid-checkbox-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  background-image: url('/images/checkbox-green.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.paid-checkbox-btn:hover {
  opacity: 0.8;
}

.paid-checkbox-btn-yellow {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  background-image: url('/images/checkbox-yellow.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.paid-checkbox-btn-yellow:hover {
  opacity: 0.8;
}

.paid-checkbox-btn-red {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  background-image: url('/images/checkbox-red.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.paid-checkbox-btn-red:hover {
  opacity: 0.8;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  padding: 20px;
}

.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.content-card {
  background: white;
  border-radius: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* ===== TOOLBAR ===== */
.toolbar {
  padding: 15px 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.toolbar-center {
  display: flex;
  justify-content: center;
}

.toolbar-btn.btn-add {
  background: #4b5041;
  color: white;
  font-weight: bold;
}

.toolbar-btn.btn-add:hover {
  background: #3a3e33;
}

.toolbar-left {
  display: flex;
  gap: 5px;
}

.toolbar-btn {
  background: #f0f0f0;
  border: 1px solid #ccc;
  padding: 8px 15px;
  cursor: pointer;
  font-size: 10px;
  color: #666;
  text-decoration: none;
  transition: all 0.2s;
}

.toolbar-btn:hover {
  background: #e0e0e0;
  text-decoration: none;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toolbar-right label {
  color: #78879a;
  font-size: 14px;
}

.search-box {
  padding: 8px 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  width: 200px;
}

.search-box:focus {
  outline: none;
  border-color: #4a6fa5;
}

/* ===== DATA TABLE ===== */
.data-table-container {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  background: #fff;
  color: #78879a;
  padding: 12px 10px;
  text-align: left;
  font-weight: bold;
  border: 1px solid #ddd;
  border-bottom: 3px solid #ddd;
  white-space: nowrap;
  position: relative;
}

.data-table th .sort-arrows {
  margin-left: 5px;
  font-size: 10px;
  opacity: 0.6;
}

.data-table td {
  padding: 4px 6px;
  border: 1px solid #ddd;
  vertical-align: middle;
  color: #78879a;
}

.data-table tbody tr:hover {
  background: #f5f8ff;
}

.data-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.data-table tbody tr:nth-child(even):hover {
  background: #f5f8ff;
}

.check-icon {
  color: #4a9f4a;
  font-size: 18px;
}

.link-cell {
  color: #4a6fa5;
  text-decoration: none;
}

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

.date-highlight {
  color: #c9302c;
  font-weight: 500;
}

.date-warning {
  color: #ec971f;
}

.text-muted {
  color: #999;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  font-size: 16px;
  padding: 5px;
  transition: color 0.2s;
}

.icon-btn:hover {
  color: #4a6fa5;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #888;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h3 {
  margin-bottom: 10px;
  color: #666;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 992px) {
  .stats-container {
    justify-content: center;
  }
  
  .stat-value {
    font-size: 2rem;
  }
  
  .app-header {
    flex-direction: column;
    text-align: center;
  }
  
  .header-right {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 10px;
  }
  
  .nav-container {
    flex-direction: column;
    gap: 10px;
  }
  
  .page-title {
    position: static;
    transform: none;
  }
  
  .nav-buttons-row {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-buttons-row img {
    height: 24px;
  }
  
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .toolbar-left,
  .toolbar-right {
    justify-content: center;
  }
  
  .search-box {
    width: 100%;
  }
  
  .data-table {
    font-size: 12px;
  }
  
  .data-table th,
  .data-table td {
    padding: 8px 5px;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-item {
    flex: 1 1 45%;
  }
}

@media (max-width: 480px) {
  .stat-value {
    font-size: 1.5rem;
  }
  
  .page-title {
    font-size: 1rem;
    padding: 6px 15px;
  }
  
  .btn {
    padding: 8px 15px;
    font-size: 13px;
  }
  
  .header-right .btn {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .login-container {
    padding: 30px 20px;
    margin: 20px;
  }
}

/* ===== MODAL STYLES ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal[style*="display: block"],
.modal[style*="display:block"] {
  display: flex !important;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
  background: #6f745c;
  color: white;
  border-radius: 8px 8px 0 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.3rem;
}

.modal-close {
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.8;
}

.modal-close:hover {
  opacity: 1;
}

.modal-content form {
  padding: 20px;
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333333;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  color: #333333;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.form-control:focus {
  outline: none;
  border-color: #6f745c;
}

textarea.form-control {
  resize: vertical;
  font-family: "Helvetica Neue", Roboto, Arial, "Droid Sans", sans-serif;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.btn-cancel {
  padding: 10px 20px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.btn-cancel:hover {
  background: #eee;
}

.btn-save {
  padding: 10px 20px;
  background: #6f745c;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.btn-save:hover {
  background: #5d6150;
}

.multi-line-cell {
  line-height: 1.4;
}

.multi-line-cell small {
  color: #666;
}

.data-table tbody tr:nth-child(odd) {
  background-color: #f9f9f9;
}

.data-table tbody tr:nth-child(even) {
  background-color: #ffffff;
}

.data-table tbody tr:hover {
  background-color: #f0f0f0;
}

.sortable {
  cursor: pointer;
}


@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .form-row .form-group {
    margin-bottom: 15px;
  }
}

/* Info Alert Box */
#infoAlertBox {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  min-width: 280px;
  max-width: 400px;
  z-index: 10000;
}

.info-alert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: #4b5041;
  color: white;
  border-radius: 7px 7px 0 0;
}

.info-alert-title {
  font-weight: bold;
  font-size: 14px;
}

.info-alert-close {
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
}

.info-alert-close:hover {
  opacity: 0.7;
}

.info-alert-content {
  padding: 15px;
  font-size: 14px;
  color: #333;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Icon Buttons */
.icon-btn {
  cursor: pointer;
  font-size: 16px;
  color: #666;
  padding: 2px 4px;
}

.icon-btn:hover {
  color: #4b5041;
}

.icon-btn-delete {
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  color: #999;
  background: none;
  border: none;
  padding: 0 4px;
  line-height: 1;
}

.icon-btn-delete:hover {
  color: #c00;
}

.icon-btn .fa-envelope,
.icon-btn .fa-wrench {
  font-size: 14px;
}

/* Expandable Cell */
.expandable-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.expand-content {
  display: none;
  font-size: 12px;
  color: #333;
  margin-top: 0;
  padding: 5px 8px;
  background: #f5f5f5;
  border-radius: 4px;
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 200px;
  text-align: left;
  cursor: pointer;
}

/* Action Links */
.action-link {
  background: none;
  border: none;
  color: #4a6fa5;
  cursor: pointer;
  font-size: 13px;
  padding: 2px 6px;
  text-decoration: underline;
}

.action-link:hover {
  color: #2d4a6f;
}

.action-link-delete {
  color: #999;
}

.action-link-delete:hover {
  color: #c00;
}
