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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #262633; /* Raisin for text */
    background-color: rgba(255, 169, 0, 0.3); /* Yellow with 30% transparency */
    font-weight: 300; /* Roboto Light for body text */
}

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

/* Typography - Following Brand Guide */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: #262633; /* Raisin for headings */
}

/* Main Title - Public Sans Thin equivalent using Roboto Thin */
h1 { 
    font-size: 2.5rem; 
    font-weight: 100; /* Roboto Thin */
}

/* Highlight - Public Sans Light equivalent using Roboto Light */
h2 { 
    font-size: 2rem; 
    font-weight: 300; /* Roboto Light */
}

/* Subtitle - Roboto Regular */
h3 { 
    font-size: 1.5rem; 
    font-weight: 400; /* Roboto Regular */
}

h4 { 
    font-size: 1.25rem; 
    font-weight: 400; /* Roboto Regular */
}

/* Text - Roboto Light/Medium */
p {
    margin-bottom: 1rem;
    line-height: 1.5;
    font-weight: 300; /* Roboto Light for body text */
    color: #262633; /* Raisin for text */
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #8134b2; /* Violet border */
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 500; /* Roboto Medium for logo */
    color: #262633; /* Raisin for logo */
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.tagline {
    font-size: 0.75rem;
    color: #969300; /* Olive for tagline */
    font-weight: 300; /* Roboto Light */
    margin-top: -2px;
    font-family: 'Roboto', sans-serif;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-credits {
    background: rgba(129, 52, 178, 0.1); /* Violet with transparency */
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 400; /* Roboto Regular */
    color: #262633; /* Raisin */
    font-size: 0.875rem;
    font-family: 'Roboto', sans-serif;
    border: 1px solid #8134b2; /* Violet border */
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 400; /* Roboto Regular for buttons */
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-family: 'Roboto', sans-serif;
}

.btn-primary {
    background: #969300; /* Olive for primary buttons */
    color: white;
    font-weight: 500; /* Roboto Medium for primary buttons */
}

.btn-primary:hover {
    background: #7a7700; /* Darker olive on hover */
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #262633; /* Raisin */
    border: 1px solid #8134b2; /* Violet border */
    font-weight: 400; /* Roboto Regular */
}

.btn-outline:hover {
    background: rgba(129, 52, 178, 0.1); /* Violet with transparency */
    border-color: #8134b2;
}

.btn-secondary {
    background: #262633; /* Raisin */
    color: white;
    font-weight: 400; /* Roboto Regular */
}

.btn-secondary:hover {
    background: #1a1a24; /* Darker raisin */
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #262633 0%, #8134b2 100%); /* Raisin to Violet gradient */
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 100; /* Roboto Thin for main hero title */
    font-family: 'Roboto', sans-serif;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300; /* Roboto Light */
    font-family: 'Roboto', sans-serif;
    color: white;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 500; /* Roboto Medium for numbers */
    margin-bottom: 0.25rem;
    font-family: 'Roboto', sans-serif;
    color: #ffa900; /* Yellow for stats */
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    font-weight: 300; /* Roboto Light */
    font-family: 'Roboto', sans-serif;
}

/* Apps Gallery */
.apps-gallery {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 300; /* Roboto Light for section headers */
    font-family: 'Roboto', sans-serif;
}

.section-header p {
    color: #262633; /* Raisin */
    font-size: 1.125rem;
    font-weight: 300; /* Roboto Light */
    font-family: 'Roboto', sans-serif;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Force exactly 2 columns */
    gap: 20px; /* 20px margin between cards */
    margin-bottom: 2rem;
    max-width: 900px; /* Increased width for better 2-column layout */
    margin-left: auto;
    margin-right: auto;
}

.app-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(129, 52, 178, 0.2); /* Violet shadow */
    transition: all 0.3s ease;
    border: 2px solid #8134b2; /* Violet border */
    min-width: 0; /* Prevent grid items from overflowing */
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(129, 52, 178, 0.3); /* Violet shadow on hover */
    border-color: #6b2a94; /* Darker violet on hover */
}

.app-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(129, 52, 178, 0.1), rgba(129, 52, 178, 0.2)); /* Violet gradient background */
}

.app-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(38, 38, 51, 0.9); /* Raisin with transparency */
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 400; /* Roboto Regular */
    font-family: 'Roboto', sans-serif;
}

.app-content {
    padding: 1.5rem;
    background: rgba(129, 52, 178, 0.05); /* Very light violet background */
}

.app-content h4 {
    margin-bottom: 0.5rem;
    color: #262633; /* Raisin */
    font-weight: 500; /* Roboto Medium for app titles */
    font-family: 'Roboto', sans-serif;
}

.app-content p {
    color: #262633; /* Raisin */
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 300; /* Roboto Light */
    font-family: 'Roboto', sans-serif;
}

.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-tag {
    background: rgba(129, 52, 178, 0.1); /* Violet with transparency */
    color: #262633; /* Raisin */
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 400; /* Roboto Regular */
    font-family: 'Roboto', sans-serif;
    border: 1px solid #8134b2; /* Violet border */
}

.app-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(129, 52, 178, 0.2); /* Violet border */
}

.app-cost {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.cost-amount {
    font-size: 1.25rem;
    font-weight: 500; /* Roboto Medium for prices */
    color: #969300; /* Olive for price */
    font-family: 'Roboto', sans-serif;
}

.cost-label {
    font-size: 0.75rem;
    color: #262633; /* Raisin */
    font-weight: 300; /* Roboto Light */
    font-family: 'Roboto', sans-serif;
}

.app-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap; /* Allow buttons to wrap if needed */
}

/* Features Section */
.features {
    background: rgba(255, 255, 255, 0.8); /* White with transparency */
    padding: 4rem 0;
}

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

.feature-card {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(129, 52, 178, 0.2); /* Violet border */
}

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

.feature-card h4 {
    margin-bottom: 1rem;
    color: #262633; /* Raisin */
    font-weight: 500; /* Roboto Medium for feature titles */
    font-family: 'Roboto', sans-serif;
}

.feature-card p {
    color: #262633; /* Raisin */
    font-size: 0.875rem;
    font-weight: 300; /* Roboto Light */
    font-family: 'Roboto', sans-serif;
}

/* Footer */
.footer {
    background: #262633; /* Raisin background */
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
    font-weight: 500; /* Roboto Medium for footer headings */
    font-family: 'Roboto', sans-serif;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 300; /* Roboto Light */
    font-family: 'Roboto', sans-serif;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
    font-weight: 300; /* Roboto Light */
    font-family: 'Roboto', sans-serif;
}

.footer-section ul li a:hover {
    color: #ffa900; /* Yellow on hover */
}

.footer-bottom {
    border-top: 1px solid rgba(129, 52, 178, 0.3); /* Violet border */
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin: 0;
    font-weight: 300; /* Roboto Light */
    font-family: 'Roboto', sans-serif;
}

/* Auth Pages */
.auth-page {
    background: linear-gradient(135deg, #262633 0%, #8134b2 100%); /* Raisin to Violet gradient */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(129, 52, 178, 0.4); /* Violet shadow */
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    border: 2px solid #8134b2; /* Violet border */
}

.auth-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(129, 52, 178, 0.2); /* Violet border */
}

.auth-header .logo {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.auth-content {
    padding: 0;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid rgba(129, 52, 178, 0.2); /* Violet border */
}

.tab-button {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 400; /* Roboto Regular */
    color: #262633; /* Raisin */
    transition: all 0.2s ease;
    font-family: 'Roboto', sans-serif;
}

.tab-button.active {
    color: #969300; /* Olive for active tab */
    border-bottom: 2px solid #969300; /* Olive border */
    background: rgba(255, 169, 0, 0.1); /* Yellow with transparency */
    font-weight: 500; /* Roboto Medium for active tab */
}

.tab-content {
    display: none;
    padding: 2rem;
}

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

.auth-form h2 {
    margin-bottom: 0.5rem;
    color: #262633; /* Raisin */
    font-weight: 400; /* Roboto Regular for form titles */
    font-family: 'Roboto', sans-serif;
}

.auth-form > p {
    color: #262633; /* Raisin */
    margin-bottom: 2rem;
    font-weight: 300; /* Roboto Light */
    font-family: 'Roboto', sans-serif;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 400; /* Roboto Regular for labels */
    color: #262633; /* Raisin */
    font-family: 'Roboto', sans-serif;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(129, 52, 178, 0.3); /* Violet border */
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
    font-family: 'Roboto', sans-serif;
    font-weight: 300; /* Roboto Light for input text */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #969300; /* Olive focus */
    box-shadow: 0 0 0 3px rgba(150, 147, 0, 0.1); /* Olive shadow */
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #262633; /* Raisin */
    font-size: 0.75rem;
    font-weight: 300; /* Roboto Light */
    font-family: 'Roboto', sans-serif;
}

.auth-result {
    margin-top: 1rem;
}

.error-message {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(220, 38, 38, 0.3);
    font-size: 0.875rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 400; /* Roboto Regular */
}

.success-message {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(22, 163, 74, 0.3);
    font-size: 0.875rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 400; /* Roboto Regular */
}

.auth-demo {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(129, 52, 178, 0.2); /* Violet border */
}

.auth-demo h4 {
    margin-bottom: 1rem;
    color: #262633; /* Raisin */
    font-size: 1rem;
    font-weight: 500; /* Roboto Medium for demo section title */
    font-family: 'Roboto', sans-serif;
}

.demo-accounts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.demo-account {
    background: rgba(129, 52, 178, 0.05); /* Violet with transparency */
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: 'Roboto', sans-serif;
    border: 1px solid rgba(129, 52, 178, 0.2); /* Violet border */
}

.demo-account strong {
    color: #262633; /* Raisin */
    font-weight: 500; /* Roboto Medium for emphasis */
}

.demo-account code {
    background: rgba(129, 52, 178, 0.1); /* Violet background */
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
    font-family: 'Roboto Mono', 'Monaco', 'Menlo', monospace;
    font-size: 0.75rem;
}

.demo-account small {
    color: #262633; /* Raisin */
    font-weight: 300; /* Roboto Light */
}

.auth-benefits {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(129, 52, 178, 0.2); /* Violet border */
}

.auth-benefits h4 {
    margin-bottom: 1rem;
    color: #262633; /* Raisin */
    font-weight: 500; /* Roboto Medium */
    font-family: 'Roboto', sans-serif;
}

.auth-benefits ul {
    list-style: none;
    padding: 0;
}

.auth-benefits ul li {
    padding: 0.5rem 0;
    color: #262633; /* Raisin */
    font-size: 0.875rem;
    font-weight: 300; /* Roboto Light */
    font-family: 'Roboto', sans-serif;
}

.auth-footer {
    padding: 1rem 2rem;
    background: rgba(255, 169, 0, 0.1); /* Yellow with transparency */
    border-top: 1px solid rgba(129, 52, 178, 0.2); /* Violet border */
    text-align: center;
}

.auth-footer p {
    color: #262633; /* Raisin */
    font-size: 0.75rem;
    margin: 0;
    font-weight: 300; /* Roboto Light */
    font-family: 'Roboto', sans-serif;
}

/* Dashboard */
.dashboard {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h2 {
    color: #262633; /* Raisin */
    margin-bottom: 0.5rem;
    font-weight: 300; /* Roboto Light for dashboard title */
    font-family: 'Roboto', sans-serif;
}

.dashboard-header p {
    color: #262633; /* Raisin */
    font-weight: 300; /* Roboto Light */
    font-family: 'Roboto', sans-serif;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(129, 52, 178, 0.2); /* Violet shadow */
    border: 1px solid rgba(129, 52, 178, 0.3); /* Violet border */
    overflow: hidden;
}

.card-header {
    padding: 1.5rem 1.5rem 0;
}

.card-header h3 {
    color: #262633; /* Raisin */
    font-size: 1.125rem;
    margin: 0;
    font-weight: 500; /* Roboto Medium for card titles */
    font-family: 'Roboto', sans-serif;
}

.card-content {
    padding: 1.5rem;
}

.credit-display {
    text-align: center;
    margin-bottom: 1.5rem;
}

.credit-amount {
    font-size: 3rem;
    font-weight: 100; /* Roboto Thin for large numbers */
    color: #969300; /* Olive for credit amount */
    line-height: 1;
    font-family: 'Roboto', sans-serif;
}

.credit-label {
    color: #262633; /* Raisin */
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 300; /* Roboto Light */
    font-family: 'Roboto', sans-serif;
}

.credit-actions {
    text-align: center;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(129, 52, 178, 0.05); /* Violet with transparency */
    border: 1px solid rgba(129, 52, 178, 0.2); /* Violet border */
    border-radius: 6px;
    text-decoration: none;
    color: #262633; /* Raisin */
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
}

.action-button:hover {
    background: rgba(129, 52, 178, 0.1); /* Darker violet on hover */
    border-color: #8134b2;
}

.action-icon {
    font-size: 1.25rem;
}

.action-text {
    font-weight: 400; /* Roboto Regular */
    font-family: 'Roboto', sans-serif;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(129, 52, 178, 0.2); /* Violet border */
}

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

.info-item label {
    font-weight: 400; /* Roboto Regular */
    color: #262633; /* Raisin */
    font-size: 0.875rem;
    font-family: 'Roboto', sans-serif;
}

.info-item span {
    color: #262633; /* Raisin */
    font-size: 0.875rem;
    font-weight: 400; /* Roboto Regular */
    font-family: 'Roboto', sans-serif;
}

.dashboard-section {
    margin-bottom: 3rem;
}

.dashboard-app-card {
    margin-bottom: 0;
}

.usage-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(129, 52, 178, 0.2); /* Violet shadow */
    border: 1px solid rgba(129, 52, 178, 0.3); /* Violet border */
    overflow: hidden;
}

.usage-table {
    width: 100%;
    border-collapse: collapse;
}

.usage-table th,
.usage-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(129, 52, 178, 0.2); /* Violet border */
    font-family: 'Roboto', sans-serif;
}

.usage-table th {
    background: rgba(129, 52, 178, 0.05); /* Violet background */
    font-weight: 500; /* Roboto Medium for table headers */
    color: #262633; /* Raisin */
    font-size: 0.875rem;
}

.usage-table td {
    color: #262633; /* Raisin */
    font-size: 0.875rem;
    font-weight: 300; /* Roboto Light for table data */
}

.usage-table tbody tr:hover {
    background: rgba(129, 52, 178, 0.05); /* Violet hover */
}

.no-data {
    text-align: center;
    color: #262633; /* Raisin */
    font-style: italic;
    font-weight: 300; /* Roboto Light */
    font-family: 'Roboto', sans-serif;
}

/* Admin Panel */
.admin-panel {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.admin-header {
    margin-bottom: 2rem;
}

.admin-header h2 {
    color: #262633; /* Raisin */
    margin-bottom: 0.5rem;
    font-weight: 300; /* Roboto Light for admin title */
    font-family: 'Roboto', sans-serif;
}

.admin-header p {
    color: #262633; /* Raisin */
    font-weight: 300; /* Roboto Light */
    font-family: 'Roboto', sans-serif;
}

.admin-tabs {
    display: flex;
    border-bottom: 1px solid rgba(129, 52, 178, 0.3); /* Violet border */
    margin-bottom: 2rem;
}

.admin-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(129, 52, 178, 0.2); /* Violet shadow */
    border: 1px solid rgba(129, 52, 178, 0.3); /* Violet border */
    padding: 2rem;
}

.admin-form {
    background: rgba(129, 52, 178, 0.05); /* Violet background */
    border: 1px solid rgba(129, 52, 178, 0.2); /* Violet border */
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.admin-form h4 {
    margin-bottom: 1.5rem;
    color: #262633; /* Raisin */
    font-weight: 500; /* Roboto Medium */
    font-family: 'Roboto', sans-serif;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(129, 52, 178, 0.2); /* Violet border */
    font-family: 'Roboto', sans-serif;
}

.admin-table th {
    background: rgba(129, 52, 178, 0.05); /* Violet background */
    font-weight: 500; /* Roboto Medium */
    color: #262633; /* Raisin */
    font-size: 0.875rem;
}

.admin-table td {
    color: #262633; /* Raisin */
    font-size: 0.875rem;
    font-weight: 300; /* Roboto Light */
}

.admin-table tbody tr:hover {
    background: rgba(129, 52, 178, 0.05); /* Violet hover */
}

.admin-table a {
    color: #969300; /* Olive for links */
    text-decoration: none;
    font-weight: 400; /* Roboto Regular */
}

.admin-table a:hover {
    text-decoration: underline;
}

.status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 400; /* Roboto Regular */
    font-family: 'Roboto', sans-serif;
}

.status.active {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
    border: 1px solid rgba(22, 163, 74, 0.3);
}

.status.inactive {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.config-editor {
    margin-top: 1rem;
}

.config-info {
    background: rgba(255, 169, 0, 0.1); /* Yellow background */
    border: 1px solid rgba(255, 169, 0, 0.3); /* Yellow border */
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.config-info p {
    color: #262633; /* Raisin */
    margin: 0;
    font-size: 0.875rem;
    font-weight: 300; /* Roboto Light */
    font-family: 'Roboto', sans-serif;
}

.config-info code {
    background: rgba(129, 52, 178, 0.1); /* Violet background */
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
    font-family: 'Roboto Mono', 'Monaco', 'Menlo', monospace;
    font-size: 0.75rem;
}

.config-example {
    margin-bottom: 2rem;
}

.config-example h5 {
    margin-bottom: 0.5rem;
    color: #262633; /* Raisin */
    font-weight: 500; /* Roboto Medium */
    font-family: 'Roboto', sans-serif;
}

.config-example pre {
    background: #262633; /* Raisin background */
    color: #ffa900; /* Yellow text */
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.5;
    font-family: 'Roboto Mono', 'Monaco', 'Menlo', monospace;
}

.config-actions {
    display: flex;
    gap: 1rem;
}

.users-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(129, 52, 178, 0.05); /* Violet background */
    border: 1px solid rgba(129, 52, 178, 0.2); /* Violet border */
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 100; /* Roboto Thin for large stats */
    color: #969300; /* Olive for stats */
    display: block;
    margin-bottom: 0.25rem;
    font-family: 'Roboto', sans-serif;
}

.stat-card .stat-label {
    color: #262633; /* Raisin */
    font-size: 0.875rem;
    font-weight: 300; /* Roboto Light */
    font-family: 'Roboto', sans-serif;
}

.users-table {
    margin-top: 2rem;
}

.users-table h4 {
    margin-bottom: 1rem;
    color: #262633; /* Raisin */
    font-weight: 500; /* Roboto Medium */
    font-family: 'Roboto', sans-serif;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 2rem;
    color: #262633; /* Raisin */
    font-style: italic;
    font-weight: 300; /* Roboto Light */
    font-family: 'Roboto', sans-serif;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .apps-grid {
        max-width: 700px; /* Adjust for smaller screens but keep 2 columns */
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .apps-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        max-width: 400px; /* Constrain width for single column */
        gap: 15px; /* Slightly smaller gap on mobile */
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .app-actions {
        flex-direction: column;
    }
    
    .admin-table {
        font-size: 0.75rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        margin: 1rem;
        max-width: none;
    }
    
    .auth-content {
        padding: 0;
    }
    
    .tab-content {
        padding: 1rem;
    }
    
    .demo-accounts {
        gap: 0.5rem;
    }
    
    .demo-account {
        padding: 0.75rem;
    }
    
    .apps-grid {
        gap: 10px; /* Even smaller gap on very small screens */
    }
}

/* Force 2-column layout on larger screens */
@media (min-width: 769px) {
    .apps-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Force 2 columns */
    }
}