/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background:#652A0E;  
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Main Content */
main {
    flex: 1;
}

/* Form Section */
.form-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-section h2 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: #a0aec0;
}

/* Buttons */
.btn-primary {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background: #652A0E; 
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-delete {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-delete:hover {
    background: #c53030;
}

/* Table Section */
.table-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table-section h2 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.subscriptions-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.subscriptions-table th,
.subscriptions-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.subscriptions-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.subscriptions-table tr:hover {
    background: #f7fafc;
}

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

/* Status Indicators */
.status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status.active {
    background: #c6f6d5;
    color: #22543d;
}

.status.inactive {
    background: #fed7d7;
    color: #742a2a;
}

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

.empty-state p {
    font-size: 1.1rem;
}

/* Delete Form */
.delete-form {
    display: inline;
}

/* Flash Messages */
.flash-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.flash-message.success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.flash-message.error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

.flash-message.info {
    background: #bee3f8;
    color: #2a4365;
    border: 1px solid #90cdf4;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    color: #718096;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    .form-section,
    .table-section {
        padding: 20px;
    }
    
    .subscriptions-table {
        font-size: 0.875rem;
    }
    
    .subscriptions-table th,
    .subscriptions-table td {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .btn-primary {
        width: 100%;
        padding: 16px;
    }
    
    .subscriptions-table th,
    .subscriptions-table td {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
}

.landing-page {
  /* background: linear-gradient(135deg, #E4002B 0%, #4E3629 100%); Brown colors */
  background: #652A0E; 
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: white;
}

.landing-container {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 3rem;
  border-radius: 1rem;
  backdrop-filter: blur(8px);
}

.brand {
  color: #E4002B; /* Brown red */
  font-weight: bold;
}

.tagline {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  opacity: 0.9;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 2rem;
  padding: 0.8rem 1.5rem;
  background: white;
  color: #333;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.login-btn:hover {
  transform: scale(1.05);
}

.google-icon {
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
}

.flash-container {
    margin: 1em 0;
}
.flash {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-weight: 500;
}
.flash.success {
    background-color: #00A86B;
    color: white;
}
.flash.error {
    background-color: #E4002B;
    color: white;
}