:root {
    --primary-color: #4ba541;
    --text-color: #333;
    --bg-color: #fff;
    --secondary-bg: #f5f5f5;
    --border-color: #ddd;
    --hover-color: #3d8a34;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.dark-mode {
    --primary-color: #4ba541;
    --text-color: #e0e0e0;
    --bg-color: #1a1a1a;
    --secondary-bg: #2d2d2d;
    --border-color: #404040;
    --hover-color: #3d8a34;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s, color 0.3s;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-top: 3rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.title-section {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

h1 {
    font-size: 2.5rem;
    margin: 0;
    color: var(--primary-color);
    text-align: center;
}

.tagline-main {
    font-size: 1.6rem;
    margin: 0;
    color: var(--text-color);
    opacity: 0.9;
}

.tagline-sub {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-color);
    opacity: 0.7;
}

.subtitle {
    color: var(--text-color);
    opacity: 0.8;
}

.controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: var(--hover-color);
}

.secondary-btn {
    background-color: var(--secondary-bg);
    color: var(--text-color);
    border: 1px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.note-container {
    margin-bottom: 2rem;
    position: relative;
}

.privacy-section {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    margin-bottom: 20px;
}

.separator {
    width: 35%;
    height: 2px;
    background-color: var(--primary-color);
    margin: 0 auto 1rem;
    opacity: 0.7;
}

.privacy-message {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.word-counter {
    position: absolute;
    bottom: 25px;
    right: 1rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.word-counter span {
    font-size: 1.1rem;
}

textarea {
    width: 100%;
    min-height: 300px;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
    font-family: var(--font-family);
    resize: vertical;
    transition: border-color 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.email-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

input[type="email"] {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
}

input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.history-section {
    margin-top: 2rem;
}

.history-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.history-item {
    padding: 1.5rem;
    background-color: var(--secondary-bg);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.history-item.expanded {
    cursor: default;
    background-color: var(--bg-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.history-content {
    width: 100%;
}

.history-preview {
    position: relative;
    padding-right: 2rem;
}

.preview-text {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.expand-indicator {
    color: var(--primary-color);
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.expand-indicator::before {
    content: '↓';
    font-size: 1.2rem;
}

.history-item.expanded .expand-indicator::before {
    content: '↑';
}

.history-full-text {
    display: none;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: var(--secondary-bg);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.full-text-content {
    white-space: pre-wrap;
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.1rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 1rem;
}

.history-item.expanded .history-full-text {
    display: block;
}

.history-actions {
    display: none;
    margin-top: 1rem;
    text-align: right;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.history-item.expanded .history-actions {
    display: block;
}

.close-note-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.close-note-btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

.history-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.history-word-count {
    background-color: var(--primary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-timestamp {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-left: auto;
}

/* Add smooth transition for expanding/collapsing */
.history-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.history-full-text {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
    overflow: hidden;
}

.history-item.expanded .history-full-text {
    max-height: 2000px; /* Adjust based on your needs */
}

footer {
    text-align: center;
    margin-top: auto;
    padding: 2rem 0;
    color: var(--text-color);
    opacity: 0.8;
}

footer p a {
    color: #72a158 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

footer p a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #72a158;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

footer p a:hover {
    color: #72a158 !important;
}

footer p a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

footer p a:visited {
    color: #72a158 !important;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: #72a158 !important;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #72a158 !important;
}

.footer-links a:visited {
    color: #72a158 !important;
}

.new-note-section {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.new-note-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.new-note-btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.new-note-btn:active {
    transform: translateY(0);
}

.language-select {
    margin-right: 1rem;
}

.language-dropdown {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.language-dropdown:hover {
    border-color: var(--hover-color);
}

.language-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(75, 165, 65, 0.2);
}

.action-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0.5rem;
}

.action-button:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

.action-button i {
    font-size: 1.1rem;
}

/* Scrollbar styling for the full text content */
.full-text-content::-webkit-scrollbar {
    width: 8px;
}

.full-text-content::-webkit-scrollbar-track {
    background: var(--secondary-bg);
    border-radius: 4px;
}

.full-text-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.full-text-content::-webkit-scrollbar-thumb:hover {
    background: var(--hover-color);
}

@media (max-width: 768px) {
    .app-container {
        padding: 1rem;
    }

    header {
        padding-top: 4rem;
    }

    .controls {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    .email-section {
        flex-direction: column;
    }

    .new-note-section {
        bottom: 1rem;
        right: 1rem;
    }

    .new-note-btn {
        padding: 0.75rem 1.25rem;
    }

    .theme-toggle {
        top: 0.5rem;
        left: 0.5rem;
    }

    .deiso-kit-link {
        top: 0.5rem;
        right: 0.5rem;
    }

    .deiso-kit-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        min-width: 120px;
    }

    h1 {
        font-size: 2rem;
        margin-top: 3rem;
    }

    .tagline-main {
        font-size: 1.3rem;
    }

    .tagline-sub {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    header {
        padding-top: 3.5rem;
    }

    .theme-toggle {
        top: 0.5rem;
        left: 0.5rem;
    }

    .deiso-kit-link {
        top: 0.5rem;
        right: 0.5rem;
    }

    .deiso-kit-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        min-width: 100px;
    }

    h1 {
        font-size: 1.8rem;
        margin-top: 2.5rem;
    }

    .tagline-main {
        font-size: 1.1rem;
    }

    .tagline-sub {
        font-size: 0.9rem;
    }
}

/* Notification Styles */
#notificationArea {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    max-width: 400px;
}

.notification {
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 1;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transform: translateX(0);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 300px;
}

.notification .close-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.notification .close-btn:hover {
    opacity: 1;
}

.notification.info {
    background-color: #2196F3;
    border: none;
}

.notification.success {
    background-color: #2196F3;
    border: none;
}

.notification.error {
    background-color: #f44336;
    border: none;
}

.notification.hide {
    opacity: 0;
    transform: translateX(100%);
}

.deiso-link {
    color: #63a34e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.deiso-link:hover {
    color: #4d7a3b;
}

.deiso-link:visited {
  color: #63a34e;
}
#dictateBtn {
    background-color: #3a51a2;
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: inherit;
    font-size: inherit;
}

#dictateBtn:hover {
    background-color: #2d3f7d;
}

#saveBtn {
    background-color: #63a34e;
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: inherit;
    font-size: inherit;
}

#saveBtn:hover {
    background-color: #4d7a3b;
}

.theme-toggle {
    position: relative;
    top: auto;
    left: auto;
    z-index: 10;
}

.theme-toggle-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* Light mode - show sun icon */
.theme-toggle-btn[data-theme="light"] {
    color: #FFD700 !important; /* Bright yellow for sun icon */
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Dark mode - show moon icon */
.theme-toggle-btn[data-theme="dark"] {
    color: #FFD700 !important; /* Bright yellow for moon icon */
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
}

.deiso-kit-link {
    position: relative;
    top: auto;
    right: auto;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    z-index: 10;
}

.deiso-kit-link:hover,
.deiso-kit-link:focus,
.deiso-kit-link:active {
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}

.deiso-kit-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 140px;
    justify-content: center;
    outline: none !important;
}

.deiso-kit-btn:hover,
.deiso-kit-btn:focus,
.deiso-kit-btn:active {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}

.commands-link {
    display: none;
}

.footer-link {
    color: #72a158 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #72a158;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.footer-link:hover {
    color: #72a158 !important;
}

.footer-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.footer-link:visited {
    color: #72a158 !important;
} 