body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: rgb(66, 66, 66);
    padding-top: 150px;
}

.logo img {
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
}

.search-container {
    width: 100%;
    max-width: 584px;
}

.search-bar {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #000000;
    border-radius: 24px;
    outline: none;
}

.search-bar:hover {
    box-shadow: 0 1px 6px rgba(32,33,36,.28);
}

.button-container {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 584px;
}

.search-button, .about-button {
    padding: 10px 20px;
    border: 1px solid transparent;
    background-color: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
}

.search-button:hover, .about-button:hover {
    border: 1px solid #1549af;
}

.shortcuts {
    margin-top: 40px;
    width: 100%;
    max-width: 800px;
}

.shortcuts h3 {
    color: white;
    text-align: center;
    margin-bottom: 20px;
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px 15px;
    margin-bottom: 60px; /* Extra space for edit controls */
    padding-bottom: 20px;
}

.shortcut-item {
    background-color: #4a4a4a;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible; /* Allow controls to show outside */
}

.shortcut-item:hover {
    background-color: #5a5a5a;
}

.shortcut-item.editing {
    background-color: #6a6a6a;
}

.shortcut-item.add-new {
    border: 2px dashed #888;
    background-color: transparent;
    color: #888;
}

.shortcut-item.add-new:hover {
    border-color: #aaa;
    color: #aaa;
    background-color: rgba(170, 170, 170, 0.1);
}

.shortcut-favicon {
    width: 24px;
    height: 24px;
    margin: 0 auto 8px;
    background-color: #888;
    border-radius: 4px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.shortcut-title {
    color: white;
    font-size: 12px;
    word-break: break-word;
}

.shortcut-input, .shortcut-title-input {
    background-color: transparent;
    border: 1px solid #888;
    border-radius: 4px;
    color: white;
    padding: 4px;
    font-size: 12px;
    width: 100%;
    margin-bottom: 5px;
}

.shortcut-controls {
    display: none;
    margin-top: 10px;
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 6px;
    padding: 5px;
    white-space: nowrap;
    z-index: 10;
}

.shortcut-controls.show {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: nowrap;
}

.shortcut-item.editing {
    background-color: #6a6a6a;
    padding-bottom: 50px; /* Make room for the controls */
}

.shortcut-btn {
    background-color: #666;
    border: none;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    cursor: pointer;
    margin: 2px;
}

.shortcut-btn:hover {
    background-color: #777;
}

.shortcut-btn.save {
    background-color: #4CAF50;
}

.shortcut-btn.cancel {
    background-color: #f44336;
}

.shortcut-btn.delete {
    background-color: #ff6b6b;
}

.footer {
    margin-top: 40px;
    text-align: center;
    color: #ccc;
    font-size: 12px;
}

.footer a {
    color: #ccc;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.clock {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 18px;
    font-weight: 300;
}

.weather {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    font-size: 14px;
}

.greeting {
    color: white;
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 300;
    cursor: pointer;
}

@media (max-width: 768px) {
    .clock, .weather {
        position: static;
        text-align: center;
        margin: 10px 0;
    }
    
    .shortcuts-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }
    
    body {
        padding-top: 50px;
    }
    
    .command-popup {
        width: 90% !important;
        max-width: 500px !important;
    }
}

/* Command Popup Styles */
.command-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10vh;
}

.command-popup {
    background-color: rgba(30, 30, 30, 0.95);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 600px;
    max-width: 90vw;
    max-height: 80vh;
    overflow: hidden;
}

.command-input {
    width: 100%;
    padding: 20px;
    background-color: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 18px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.command-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.command-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 0;
}

.command-item {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    transition: background-color 0.2s;
}

.command-item:hover, .command-item.selected {
    background-color: rgba(0, 122, 255, 0.6);
}

.command-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.command-text {
    flex: 1;
}

.command-title {
    font-weight: 500;
    margin-bottom: 2px;
}

.command-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.ai-iframe-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.ai-iframe-wrapper {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    max-height: 800px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.ai-iframe-header {
    background-color: #f5f5f5;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.ai-iframe-title {
    font-weight: 600;
    color: #333;
}

.ai-iframe-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 4px;
}

.ai-iframe-close:hover {
    background-color: #e0e0e0;
}

.ai-iframe {
    width: 100%;
    height: calc(100% - 70px);
    border: none;
    border-radius: 0 0 12px 12px;
}

.privacy-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin: 10px 20px;
    color: #ffc107;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.privacy-checkbox {
    margin-right: 8px;
}

.commit-info {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ccc;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-family: 'Courier New', monospace;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    cursor: pointer;
    transition: background-color 0.2s;
}

.commit-info:hover {
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
}

.commit-hash {
    color: #4CAF50;
    font-weight: bold;
}

.commit-date {
    color: #888;
    margin-left: 5px;
}

/* Page Styles for About, Privacy, Terms */
.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgb(66, 66, 66);
    color: white;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 2px solid #4a4a4a;
}

.page-header h1 {
    color: white;
    margin: 0;
    font-size: 2.5em;
}

.page-header .subtitle {
    color: #ccc;
    font-size: 1.1em;
    margin-top: 10px;
}

.page-content h2 {
    color: #4CAF50;
    border-bottom: 1px solid #4a4a4a;
    padding-bottom: 10px;
    margin-top: 30px;
}

.page-content h3 {
    color: #81C784;
    margin-top: 25px;
}

.page-content code {
    background-color: #4a4a4a;
    color: #4CAF50;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.page-content pre {
    background-color: #3a3a3a;
    color: #ccc;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    border-left: 4px solid #4CAF50;
}

.warning-box {
    background-color: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #ffc107;
}

.info-box {
    background-color: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #2196F3;
}

.back-button {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    margin: 20px 0;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #45a049;
    text-decoration: none;
    color: white;
}

/* Features list styling */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.feature-item {
    background-color: #4a4a4a;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.feature-item h4 {
    color: #4CAF50;
    margin-top: 0;
}

/* Responsive design for pages */
@media (max-width: 768px) {
    .page-container {
        padding: 10px;
    }
    
    .page-header h1 {
        font-size: 2em;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
}
