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

body {
    font-family: Arial, sans-serif;
    background-color: #ffff00;
    height: 100vh;
    overflow: hidden; 
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    flex-direction: row;
    height: 100vh;
    padding: 20px;
    gap: 20px;
    overflow: hidden;
}


.left-section {
    width: 240px; 
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    overflow: hidden; 
}

.sidebar {
    background-color: #1a2e1a;
    border: 3px solid #000;
    border-radius: 15px;
    padding: 20px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 80px;
    gap: 15px;
    overflow-y: auto;
    align-content: start;
    height: calc(100vh - 110px); }

.sidebar::-webkit-scrollbar {
    width: 0;  
}

.sidebar {
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}
.app-button {
    position: relative;
    background-color: #2d4a2d;
    border: 2px solid #000;
    border-radius: 10px;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.app-button:hover {
    background-color: #3d5a3d;
    transform: scale(1.05);
}

.app-button.active {
    background-color: #4d6a4d;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
}

.app-icon {
    font-size: 32px; /* Larger icons */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    
}
.app-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(45, 74, 45, 0.9); /* Dark green with transparency */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.2s;
    text-align: center;
    padding: 5px;
    box-sizing: border-box;
}
.app-button:hover .app-icon::after {
    opacity: 1;
}

.app-button:hover .app-icon {
    transform: scale(1.1);
}

/* Update logo section */
.logo-section {
    background-color: #2d4a2d;
    border: 3px solid #000;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    cursor: pointer;
    transition: all 0.2s;
}

.logo-section:hover {
    transform: scale(1.02);
    background-color: #3d5a3d;
}

.logo-text {
    font-size: 32px; /* Slightly larger */
    font-weight: bold;
    color: #b8b8b8;
}

.home-icon {
    font-size: 28px; /* Larger home icon */
    margin-left: 12px;
}




.welcome-screen:not(.active) {
    display: none; /* Hide when not active */
} 
.welcome-screen {
    display: none;
    height: 100%;
    width: 100%;
}
.welcome-screen.active {
    display: flex;
    align-items: center;
    justify-content: center;
}
.welcome-content {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 40px;
    max-width: 800px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.welcome-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a2e1a;
    text-align: center;
}

.welcome-content .subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #2d4a2d;
    text-align: center;
}

.welcome-content .description {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #2d4a2d;
    text-align: center;
    max-width: 600px;
    line-height: 1.5;
}

.welcome-content .btn {
    background-color: #2d4a2d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

.welcome-content .btn:hover {
    background-color: #1a2e1a;
}



/* Home button cursor */
.logo-section {
    cursor: pointer;
    transition: transform 0.2s;
}

.logo-section:hover {
    transform: scale(1.02);
}

.home-icon {
    font-size: 24px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}
/* Main content area */
.main-content {
    background-color: #a8d4a8;
    border: 3px solid #000;
    border-radius: 15px;
    padding: 20px;
    flex: 1 1 100%;
    min-height: 400px;
    overflow-y: auto;
}


/* App content styling */
.app-content {
    display: none;
    width: 100%;
    height: 100%;
    min-height: 0;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.app-icon {
    width: 50px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.left-section {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}
.top-nav {
    background-color: #2d4a2d;
    border: 3px solid #000;
    border-radius: 15px;
    padding: 15px 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-button {
    background-color: #a8a8a8;
    border: 2px solid #000;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.nav-button:hover {
    background-color: #888;
}

.nav-button.active {
    background-color: #666;
    color: white;
}

.main-content {
    background-color: #a8d4a8;
    border: 3px solid #000;
    border-radius: 15px;
    padding: 30px;
    flex: 1;
    overflow-y: auto;
}

.app-content {
    display: none;
}

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

.app-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #2d4a2d;
}

.welcome-screen {
    text-align: center;
    padding: 50px;
    color: #2d4a2d;
}

.welcome-screen h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.welcome-screen p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Individual App Styles */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2d4a2d;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #2d4a2d;
    border-radius: 8px;
    font-size: 16px;
}

.btn {
    background-color: #2d4a2d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #1a2e1a;
}

.result-box {
    background-color: #fff;
    border: 2px solid #2d4a2d;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    min-height: 50px;
    word-wrap: break-word;
}


.todo-item {
    background-color: #fff;
    border: 2px solid #2d4a2d;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: between;
    align-items: center;
}

.todo-item.completed {
    text-decoration: line-through;
    opacity: 0.6;
}

.delete-btn {
    background-color: #d32f2f;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: auto;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.calc-btn {
    padding: 20px;
    font-size: 18px;
    border: 2px solid #2d4a2d;
    border-radius: 8px;
    cursor: pointer;
    background-color: #fff;
}

.calc-btn:hover {
    background-color: #f0f0f0;
}

.timer-display {
    font-size: 48px;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    color: #2d4a2d;
}

.notes-list {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 20px;
}

.note-item {
    background-color: #fff;
    border: 2px solid #2d4a2d;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.note-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.note-content {
    color: #666;
}

.expense-item {
    background-color: #fff;
    border: 2px solid #2d4a2d;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.expense-amount {
    font-weight: bold;
    color: #d32f2f;
}

.total-expense {
    font-size: 20px;
    font-weight: bold;
    color: #2d4a2d;
    margin-top: 20px;
}

.poll-option {
    background-color: #fff;
    border: 2px solid #2d4a2d;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.poll-option:hover {
    background-color: #f0f0f0;
}

.poll-option.selected {
    background-color: #2d4a2d;
    color: white;
}

.poll-results {
    margin-top: 20px;
}

.poll-result-item {
    margin-bottom: 10px;
}

.poll-bar {
    height: 20px;
    background-color: #2d4a2d;
    border-radius: 10px;
    margin-top: 5px;
}

.definition-result {
    background-color: #fff;
    border: 2px solid #2d4a2d;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.word-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.word-definition {
    line-height: 1.6;
}


/* quote generator */
.quote-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quote-display {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.generate-btn {
    align-self: center;
    width: 200px;
}

.result-box {
    background-color: #f8f8f8;
    border: 2px solid #2d4a2d;
    border-radius: 8px;
    padding: 25px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.quote-text {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
    color: #333;
}

.quote-author {
    font-weight: bold;
    text-align: right;
    color: #2d4a2d;
    font-size: 18px;
}

.quote-history {
    margin-top: 20px;
    border-top: 2px solid #2d4a2d;
    padding-top: 20px;
}

.quote-history h3 {
    color: #2d4a2d;
    margin-bottom: 15px;
    text-align: center;
}

.history-item {
    background-color: #f0f0f0;
    border-left: 3px solid #2d4a2d;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 0 5px 5px 0;
}

.history-quote {
    font-style: italic;
    margin-bottom: 5px;
    color: #333;
}

.history-author {
    font-weight: bold;
    color: #2d4a2d;
    font-size: 14px;
}

/* Password Generator Styles */
.password-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.password-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d4a2d;
}

.length-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

.length-display {
    min-width: 40px;
    text-align: center;
    font-weight: bold;
    color: #2d4a2d;
    font-size: 1.1rem;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 1.5rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2d4a2d;
    cursor: pointer;
}

.checkbox-container label {
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
}

.password-result-container {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
}

.password-result {
    flex: 1;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    word-break: break-all;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.password-result.empty {
    color: #999;
    font-style: italic;
}

.copy-btn {
    background-color: #2d4a2d;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.copy-btn:hover {
    background-color: #1a2e1a;
}

.copy-btn:active {
    transform: scale(0.98);
}

/* Custom range slider */
.range-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: #e0e0e0;
    border-radius: 4px;
    outline: none;
    margin: 10px 0;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #2d4a2d;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.generate-btn {
    background-color: #2d4a2d;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 10px;
}

.generate-btn:hover {
    background-color: #1a2e1a;
}

.generate-btn:active {
    transform: scale(0.98);
}

/* Strength indicator */
.strength-indicator {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.strength-label {
    font-size: 0.9rem;
    color: #666;
}

.strength-bar {
    flex: 1;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background-color: #2d4a2d;
    transition: all 0.3s;
}
/* hex */

.hex-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.hex-controls .input-group {
    flex: 1;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.color-box {
    height: 80px;
    border-radius: 10px;
    border: 2px solid #000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.color-box:hover {
    transform: scale(1.05);
}

.color-code {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 6px;
    border-radius: 4px;
    margin-bottom: 6px;
    font-family: monospace;
    font-size: 12px;
    text-align: center;
    width: calc(100% - 12px);
}

.copy-feedback {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2d4a2d;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.copy-feedback.show {
    opacity: 1;
}

/* paragraph */
.paragraph-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #2d4a2d;
}

.spinner {
    border: 4px solid rgba(45, 74, 45, 0.2);
    border-top: 4px solid #2d4a2d;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.generated-content {
    line-height: 1.7;
    font-size: 16px;
}

.generated-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.error-message {
    color: #d32f2f;
    padding: 20px;
    text-align: center;
    background: #ffebee;
    border-radius: 8px;
}

/* expense tracker */
.expense-form-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.input-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.input-row .input-group {
    flex: 1;
}

.expense-actions {
    display: flex;
    gap: 15px;
}

.btn-add {
    background-color: #2d4a2d;
    flex: 2;
}

.btn-clear {
    background-color: #d32f2f;
    flex: 1;
}

.btn-icon {
    margin-right: 8px;
    font-weight: bold;
}

.expense-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.summary-card {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.summary-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 24px;
    font-weight: bold;
    color: #2d4a2d;
}

#total-expense {
    color: #d32f2f;
}

.expense-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.sort-options select {
    padding: 8px 12px;
    border: 2px solid #2d4a2d;
    border-radius: 6px;
    background: white;
    font-size: 14px;
}

.expense-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.expense-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

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

.expense-item:hover {
    background-color: #f9f9f9;
}

.expense-details {
    flex: 1;
}

.expense-description {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.expense-date {
    font-size: 12px;
    color: #888;
}

.expense-amount {
    font-weight: bold;
    color: #d32f2f;
    margin-right: 15px;
}

.delete-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s;
}

.delete-btn:hover {
    color: #d32f2f;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #888;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}
/* dictionary */
.definition-result {
    background-color: #fff;
    border: 2px solid #2d4a2d;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.word-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #2d4a2d;
    text-transform: capitalize;
}

.phonetic {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.part-of-speech {
    font-size: 18px;
    color: #2d4a2d;
    margin: 15px 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #e0e0e0;
}

.definitions {
    margin-left: 20px;
}

.definitions ol {
    padding-left: 20px;
}

.definitions li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.definition {
    font-size: 16px;
}

.example {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    padding-left: 10px;
    border-left: 2px solid #2d4a2d;
}

.source {
    margin-top: 20px;
    font-size: 12px;
    color: #888;
    text-align: right;
}
/* responsive design */

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .container {
      flex-direction: column;
      padding: 10px;
      gap: 15px;
      height: auto;
    }
  
    .left-section {
      width: 100%;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
      height: auto;
      overflow: visible;
    }
  
    .logo-section {
      width: 100%;
      justify-content: center;
    }
  
    .sidebar {
      width: 100%;
      grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
      max-height: none;
      overflow-y: visible;
      padding: 10px;
    }
  
    .right-section {
        flex: 1 1 100%;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .top-nav {
      flex-direction: column;
      gap: 10px;
      padding: 10px;
      overflow-x: auto;
      flex-wrap: nowrap;
    }
  
    .nav-button {
      flex: 1 0 auto;
      white-space: nowrap;
      font-size: 14px;
    }
  
    .main-content {
      padding: 20px;
      overflow: visible;
    }
  
    .app-content,
    .password-container,
    .paragraph-container {
      padding: 15px;
      box-shadow: none;
      border: none;
    }
  
    .hex-controls {
      flex-direction: column;
    }
  
    .password-result-container {
      flex-direction: column;
    }
  
    .generate-btn {
      width: 100%;
    }
  
    .color-grid {
      grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
  
    .welcome-screen h1 {
      font-size: 28px;
    }
  
    .welcome-screen p {
      font-size: 16px;
    }
  
    .quote-container,
    .quote-display {
      gap: 15px;
    }
  
    .input-group label,
    .input-group input,
    .input-group textarea {
      font-size: 14px;
    }
  
    .btn {
      font-size: 14px;
      padding: 10px 20px;
    }
  
    .copy-btn {
      width: 100%;
    }
  
    .checkbox-group {
      grid-template-columns: 1fr;
    }
  
    .strength-bar {
      height: 6px;
    }
  }
  .app-content {
    display: none;
    width: 100%;
}

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