/**
 * CSP-Compliant Styles
 * Extracted from inline style attributes to resolve CSP violations
 */

/* Hero section styles */
.hero {
  background-image: linear-gradient(rgba(26, 35, 126, 0.85), rgba(74, 20, 140, 0.85)), url('../images/hero-background.png');
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-logo {
  width: 200px;
  height: auto;
  margin: 0 auto 30px;
  display: block;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
  animation: gentle-glow 3s infinite ease-in-out;
}

.feature img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
}

.logo {
  height: 40px;
  width: auto;
  margin-right: 10px;
}

.testimonial {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/testimonial-bg.png');
  background-size: cover;
  background-position: center;
  color: white;
}

.testimonial blockquote,
.testimonial cite {
  color: white;
}

/* Glow effect for logo */
@keyframes gentle-glow {
  0% {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
  }

  50% {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
  }

  100% {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
  }
}

.employee-auth-container {
  position: relative;
  margin-left: auto;
}

.employee-login-btn {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.employee-login-btn:hover {
  background: #45a049;
}

.employee-menu {
  position: relative;
}

.user-info-btn {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.user-info-btn:hover {
  background: #e9ecef;
}

.employee-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  z-index: 1000;
  margin-top: 4px;
}

.employee-dropdown a,
.employee-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-decoration: none;
  color: #333;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
}

.employee-dropdown a:hover,
.employee-dropdown button:hover {
  background: #f8f9fa;
}

.employee-dropdown hr {
  margin: 0;
  border: none;
  border-top: 1px solid #dee2e6;
}

.signout-btn {
  color: #dc3545 !important;
}

.auth-error {
  color: #dc3545;
  font-size: 12px;
}

/* Subscription page styles */
.subscription-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.tab-btn.active {
    border-bottom-color: #4CAF50;
    color: #4CAF50;
    font-weight: 500;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.checkbox-group {
    margin-top: 10px;
}

.checkbox-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

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

.info-message {
    background: #d1ecf1;
    color: #0c5460;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Hidden elements */
.hidden {
    display: none !important;
}

/* Subscription messages */
#subscription-messages {
    margin-top: 20px;
}

/* Service page styles */
.service-center {
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.service-separator {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    border: 0;
    border-top: 1px solid #ccc;
}

.service-card-spacing {
    margin-top: 40px;
}

/* Footer styles */
.footer-gradient {
    background-image: linear-gradient(135deg, rgba(26, 35, 126, 0.85) 0%, rgba(43, 58, 150, 0.85) 100%), url('../images/footer-bg.png');
    background-size: cover;
    background-position: center;
    color: white;
}

.footer-gradient .footer-content {
    position: relative;
    z-index: 2;
}

.footer-gradient h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 500;
}

.footer-gradient p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.footer-gradient ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-gradient ul li {
    margin-bottom: 8px;
}

.footer-gradient ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-gradient ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-gradient .social-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2em;
    margin-right: 10px;
    transition: color 0.3s ease;
}

.footer-gradient .social-links a:hover {
    color: #ffffff;
}

.footer-gradient .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 30px;
    padding-top: 20px;
}

.footer-gradient .footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    text-align: center;
}

.delivery-footer-gradient,
.transport-footer-gradient {
    background-image: linear-gradient(135deg, rgba(26, 35, 126, 0.85) 0%, rgba(43, 58, 150, 0.85) 100%), url('../images/footer-bg.png');
    background-size: cover;
    background-position: center;
    color: white;
}

/* Apply the same styling to delivery and transport footers */
.delivery-footer-gradient h4,
.transport-footer-gradient h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 500;
}

.delivery-footer-gradient p,
.transport-footer-gradient p {
    color: rgba(255, 255, 255, 0.9);
}

.delivery-footer-gradient ul li a,
.transport-footer-gradient ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.delivery-footer-gradient ul li a:hover,
.transport-footer-gradient ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Interest form styles */
.subsidiary-links {
    margin-top: 15px;
}

/* Admin styles */
.message-area {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
}

.message-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading states */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Search boxes */
.search-box {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Export button */
.export-button {
    background: #17a2b8;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 20px;
}

.export-button:hover {
    background: #138496;
}

/* Tab buttons for admin */
.tab-button {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    cursor: pointer;
    margin-right: 5px;
    border-radius: 4px 4px 0 0;
}

.tab-button.active {
    background: white;
    border-bottom: 1px solid white;
    margin-bottom: -1px;
}

.tab-button:hover {
    background: #e9ecef;
}

/* Subscriber items */
.subscriber-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 10px;
}

.subscriber-info {
    flex-grow: 1;
}

.subscriber-email {
    font-weight: 500;
    margin-bottom: 5px;
}

.subscriber-meta {
    font-size: 12px;
    color: #666;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 3px;
}

.btn-details {
    background: #007bff;
    color: white;
    border: none;
}

.btn-details:hover {
    background: #0056b3;
}

.btn-remove {
    background: #dc3545;
    color: white;
    border: none;
}

.btn-remove:hover {
    background: #c82333;
}

/* Form grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #4CAF50;
    display: block;
}

.stat-label {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

/* Email forwarding styles */
.forwarding-rule {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.forwarding-rule h4 {
    margin-top: 0;
    color: #495057;
}

.forwarding-addresses {
    margin: 15px 0;
}

.address-input {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.address-input input {
    flex-grow: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.btn-add-address {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-add-address:hover {
    background: #218838;
}

.btn-remove-address {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.btn-remove-address:hover {
    background: #c82333;
}

.btn-save {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

.btn-save:hover {
    background: #0056b3;
}

.save-section {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

/* Admin Login Button Styling */
#loginButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
    display: inline-block;
}

#loginButton:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
    transform: translateY(-2px);
}

#loginButton:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #loginButton {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 13px;
    }
}