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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #4E342E;
    background-color: #E0E0E0;
}

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

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #4E342E 0%, #A1887F 100%);
    color: #FAFAFA;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 52, 46, 0.3);
    background: linear-gradient(135deg, #A1887F 0%, #4E342E 100%);
}

.btn-outline {
    background: rgba(250, 250, 250, 0.1);
    color: #FAFAFA;
    border: 2px solid #FAFAFA;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-outline:hover {
    background: #FAFAFA;
    color: #4E342E;
    border-color: #FAFAFA;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* Landing Page Styles */
.hero-header {
    background: linear-gradient(135deg, #4E342E 0%, #6D4C41 100%);
    color: #FAFAFA;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: relative;
    z-index: 10;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 40px;
    width: auto;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
}

.nav-actions {
    display: flex;
    gap: 16px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 40px;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.5;
}

.hero-cta {
    margin-bottom: 40px;
}

.cta-subtext {
    margin-top: 12px;
    opacity: 0.8;
    font-size: 14px;
}

/* Phone Mockup */
.mockup-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #1a1a1a;
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.screen {
    width: 100%;
    height: 100%;
    background: #FAFAFA;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(250, 250, 250, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #FAFAFA;
    width: 24px;
    border-radius: 5px;
}

.app-preview {
    padding: 20px;
    height: 100%;
}

.preview-header {
    font-size: 24px;
    font-weight: 700;
    color: #4E342E;
    margin-bottom: 20px;
    text-align: center;
}

.preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.stat {
    text-align: center;
    padding: 16px;
    background: #E0E0E0;
    border-radius: 12px;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #4E342E;
}

.stat-label {
    font-size: 12px;
    color: #6D4C41;
    margin-top: 4px;
}

.preview-tools {
    space-y: 12px;
}

.tool-item {
    padding: 12px;
    background: #E0E0E0;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    border-left: 4px solid #A1887F;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: #FAFAFA;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #4E342E;
}

.section-header p {
    font-size: 1.25rem;
    color: #6D4C41;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: #FAFAFA;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(78, 52, 46, 0.08);
    border: 1px solid #E0E0E0;
    border-left: 4px solid #A1887F;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(78, 52, 46, 0.12);
}

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

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #4E342E;
}

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

.feature-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #A1887F 0%, #8D6E63 100%);
    color: #FAFAFA;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Showcase Section */
.showcase-section {
    padding: 100px 0;
    background: #FAFAFA;
}

.showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 120px;
}

.showcase-item:last-child {
    margin-bottom: 0;
}

.showcase-item.reverse {
    direction: rtl;
}

.showcase-item.reverse > * {
    direction: ltr;
}

.showcase-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #4E342E;
    margin-bottom: 20px;
    line-height: 1.2;
}

.showcase-content p {
    font-size: 1.125rem;
    color: #6D4C41;
    line-height: 1.8;
    margin-bottom: 16px;
}

.showcase-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(78, 52, 46, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(78, 52, 46, 0.2);
}

.showcase-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Social Proof Section */
.social-proof {
    padding: 100px 0;
    background: #E0E0E0;
}

.proof-header {
    text-align: center;
    margin-bottom: 60px;
}

.proof-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4E342E;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.testimonial {
    background: #FAFAFA;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(78, 52, 46, 0.08);
    border-left: 4px solid #A1887F;
}

.quote {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 20px;
    color: #4E342E;
    line-height: 1.6;
}

.author {
    font-weight: 600;
    color: #A1887F;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #4E342E 0%, #6D4C41 100%);
    color: #FAFAFA;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.dev-credentials {
    margin-top: 60px;
    padding: 30px;
    background: rgba(161, 136, 127, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(161, 136, 127, 0.3);
}

.dev-credentials h4 {
    margin-bottom: 16px;
    color: #A1887F;
}

.dev-credentials p {
    margin-bottom: 8px;
    font-size: 14px;
}

.dev-credentials em {
    opacity: 0.8;
    font-size: 12px;
}

/* Footer */
.main-footer {
    background: #4E342E;
    color: #FAFAFA;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand p {
    margin-top: 16px;
    opacity: 0.8;
}

.footer-logo {
    height: 40px;
    margin-bottom: 16px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.link-group h4 {
    margin-bottom: 16px;
    color: #A1887F;
}

.link-group a {
    display: block;
    color: #E0E0E0;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: #A1887F;
}

.footer-bottom {
    border-top: 1px solid #6D4C41;
    padding-top: 20px;
    text-align: center;
    opacity: 0.8;
}

.footer-bottom a {
    color: #A1887F;
    text-decoration: underline;
    font-weight: 500;
}

.footer-bottom a:hover {
    color: #A1887F;
    text-decoration: none;
}

/* Dashboard Styles */
.dashboard-header {
    background: #FAFAFA;
    border-bottom: 1px solid #E0E0E0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-email {
    font-weight: 500;
    color: #6D4C41;
}

/* User Dropdown Styles */
.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    background: #A1887F;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-dropdown-toggle:hover {
    background: #4E342E;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.user-icon {
    font-size: 16px;
    color: white;
    font-weight: normal;
}

.dropdown-icon {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.card-icon {
    font-size: 24px;
    color: #A1887F;
    margin-right: 10px;
}

.activity-icon {
    background: #A1887F;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.user-dropdown-header .user-email {
    color: #4E342E;
    font-weight: 500;
    font-size: 14px;
    display: block;
}

.user-dropdown-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #4E342E;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.user-dropdown-item:hover {
    background: #f8f8f8;
}

.user-dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.dropdown-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.dashboard-main {
    padding: 40px;
    background: #E0E0E0;
    min-height: calc(100vh - 80px);
}

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

.welcome-section {
    text-align: center;
    margin-bottom: 60px;
}

.welcome-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #4E342E;
}

.welcome-section p {
    font-size: 1.25rem;
    color: #6D4C41;
}

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

.dashboard-card + .dashboard-grid {
    margin-top: 40px;
}

.dashboard-card {
    background: #FAFAFA;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(78, 52, 46, 0.08);
    border: 1px solid #E0E0E0;
    border-left: 4px solid #A1887F;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #4E342E;
    margin: 0;
}

.card-icon {
    font-size: 1.5rem;
}

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

.refresh-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
    color: #A1887F;
}

.refresh-btn:hover {
    background-color: #A1887F;
    color: white;
    transform: rotate(180deg);
}

.refresh-btn:active {
    transform: rotate(360deg);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-state, .error-state {
    text-align: center;
    padding: 20px;
    color: #666;
}

.error-state {
    color: #d32f2f;
}

/* Tooltip Styles */
.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #8B4513;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    transition: all 0.2s ease;
}

.tooltip-icon:hover {
    background-color: #654321;
    transform: scale(1.1);
}

.tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2c2c2c;
    color: white;
    text-align: left;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    pointer-events: none;
    min-width: 200px;
    max-width: 300px;
    white-space: normal;
}

.tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #2c2c2c;
}

.tooltip-container:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Responsive tooltip positioning */
@media (max-width: 768px) {
    .tooltip-content {
        position: fixed;
        bottom: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 280px;
        z-index: 1001;
    }
    
    .tooltip-content::after {
        display: none;
    }
    
    .tooltip-container:hover .tooltip-content {
        transform: translate(-50%, -50%);
    }
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 15px;
}

.stat-row-full {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.stat {
    text-align: center;
    min-width: 0;
    overflow: hidden;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #4E342E;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
    max-width: 100%;
}

.stat-label {
    font-size: 14px;
    color: #6D4C41;
    margin-top: 4px;
}

/* Responsive stat numbers for smaller screens */
@media (max-width: 768px) {
    .stat-number {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-row {
        gap: 15px;
    }
}

.empty-state {
    text-align: center;
    color: #6D4C41;
    font-style: italic;
}

.status-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.status-label {
    font-weight: 500;
    color: #6D4C41;
}

.status-value {
    font-weight: 600;
    color: #4E342E;
}

.setup-result {
    margin-top: 16px;
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
}

.setup-result .success {
    background: #E8F5E8;
    border: 1px solid #A1887F;
    color: #4E342E;
}

.setup-result .error {
    background: #FFEBEE;
    border: 1px solid #E57373;
    color: #C62828;
}

.setup-result .loading {
    background: #E0E0E0;
    border: 1px solid #A1887F;
    color: #4E342E;
}

.table-list {
    list-style: none;
    margin: 12px 0;
}

.table-list li {
    padding: 4px 0;
    font-family: monospace;
    font-size: 12px;
}

.coming-soon-section {
    background: #A1887F;
    color: #FAFAFA;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
}

.coming-soon-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #FAFAFA;
}

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

.preview-card {
    background: rgba(250, 250, 250, 0.1);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(250, 250, 250, 0.2);
}

.preview-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.preview-card h4 {
    margin: 0;
    color: #FAFAFA;
    font-size: 16px;
    font-weight: 600;
}

.preview-card p {
    color: rgba(250, 250, 250, 0.8);
    font-size: 14px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .navbar {
        padding: 16px 20px;
    }
    
    .nav-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .dashboard-nav {
        padding: 16px 20px;
    }
    
    .dashboard-main {
        padding: 20px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
    }
    
    .showcase-item {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 80px;
    }
    
    .showcase-item.reverse {
        direction: ltr;
    }
    
    .showcase-content h2 {
        font-size: 1.75rem;
    }
    
    .showcase-content p {
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

/* Add Tool Page Styles */
.add-method-selection {
    margin-bottom: 40px;
}

.method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.method-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.method-card:hover:not(.disabled) {
    border-color: #A1887F;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(161, 136, 127, 0.15);
}

.method-card.active {
    border-color: #4E342E;
    background: #fafafa;
}

.method-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.method-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.method-card h3 {
    color: #4E342E;
    margin-bottom: 10px;
    font-size: 18px;
}

.method-card p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.tool-form-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tool-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 30px;
}

.form-section h3 {
    color: #4E342E;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #4E342E;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #A1887F;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 16px;
    color: #666;
    font-weight: 500;
    z-index: 1;
}

.input-group input {
    padding-left: 35px;
}

.form-help {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
}

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

.success-message,
.error-message {
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.success-message {
    border-left: 5px solid #4CAF50;
}

.error-message {
    border-left: 5px solid #f44336;
}

.success-icon,
.error-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.success-content h3,
.error-content h3 {
    color: #4E342E;
    margin-bottom: 15px;
    font-size: 24px;
}

.success-content p,
.error-content p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.button-loading {
    display: none;
}

/* Responsive Design for Add Tool Page */
@media (max-width: 768px) {
    .method-cards {
        grid-template-columns: 1fr;
    }
    
    .tool-form-container {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .success-actions {
        flex-direction: column;
    }
}

/* Recent Activity Styles */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #fafafa;
    border-radius: 8px;
    border-left: 3px solid #A1887F;
}

.activity-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-text {
    color: #4E342E;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.activity-time {
    color: #666;
    font-size: 12px;
    font-style: italic;
}

.view-more-container {
    margin-top: 15px;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.view-more-link {
    color: #A1887F;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-more-link:hover {
    color: #4E342E;
    text-decoration: underline;
}

/* Activity Page Styles */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    color: #4E342E;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    color: #666;
    font-size: 1.1rem;
}

.activity-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #FAFAFA;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.activity-filters {
    display: flex;
    align-items: center;
    gap: 10px;
}

.activity-filters label {
    color: #4E342E;
    font-weight: 500;
}

.activity-filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: #4E342E;
}

.activity-list-detailed {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item-detailed {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #FAFAFA;
    border-radius: 8px;
    border-left: 4px solid #A1887F;
    transition: all 0.3s ease;
}

.activity-item-detailed:hover {
    background: #f5f5f5;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.activity-item-detailed .activity-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.activity-item-detailed .activity-content {
    flex: 1;
    min-width: 0;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.activity-item-detailed .activity-text {
    color: #4E342E;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 500;
}

.activity-item-detailed .activity-time {
    color: #A1887F;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.activity-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.activity-category,
.activity-date {
    color: #666;
    font-size: 13px;
}

.activity-category {
    font-weight: 500;
}

.pagination-container {
    margin-top: 40px;
    padding: 20px;
    background: #FAFAFA;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.pagination-info {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-number {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #4E342E;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-number:hover {
    background: #A1887F;
    color: white;
    border-color: #A1887F;
}

.page-number.active {
    background: #4E342E;
    color: white;
    border-color: #4E342E;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state p {
    font-size: 18px;
    margin-bottom: 20px;
}

.error-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

@media (max-width: 768px) {
    .activity-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .activity-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .activity-item-detailed .activity-time {
        white-space: normal;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .page-number {
        padding: 6px 10px;
        font-size: 14px;
    }
}
/* Minimal additions for inventory page */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Photo Upload Styles */
.photo-upload-area {
    border: 2px dashed #A1887F;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: #FAFAFA;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-upload-area:hover {
    border-color: #4E342E;
    background: #F5F5F5;
}

.photo-upload-area.dragover {
    border-color: #4E342E;
    background: #F0F0F0;
    transform: scale(1.02);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-icon {
    font-size: 48px;
    color: #A1887F;
}

.upload-placeholder p {
    margin: 0;
    color: #4E342E;
}

.upload-placeholder .upload-help {
    font-size: 14px;
    color: #666;
}

.photo-preview {
    position: relative;
    max-width: 100%;
    max-height: 300px;
}

.photo-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    object-fit: contain;
}

.remove-photo {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ff4444;
    color: white;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-photo:hover {
    background: #cc0000;
    transform: scale(1.1);
}

/* AI Results Preview Styles */
.ai-results-preview {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #F8F8F8;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    margin-bottom: 20px;
}

.photo-thumbnail {
    flex-shrink: 0;
}

.photo-thumbnail img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #A1887F;
}

.extracted-info {
    flex: 1;
}

.extracted-info h4 {
    color: #4E342E;
    margin-bottom: 10px;
    font-size: 16px;
}

.extracted-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item {
    display: flex;
    gap: 10px;
}

.detail-label {
    font-weight: 600;
    color: #4E342E;
    min-width: 80px;
}

.detail-value {
    color: #666;
    flex: 1;
}

/* Responsive adjustments for photo upload */
@media (max-width: 768px) {
    .ai-results-preview {
        flex-direction: column;
        text-align: center;
    }
    
    .photo-thumbnail {
        align-self: center;
    }
    
    .upload-icon {
        font-size: 36px;
    }
    
    .photo-upload-area {
        padding: 30px 15px;
        min-height: 150px;
    }
}
