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

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f2f5;
}

.container {
    text-align: center;
    padding: 20px;
}

.quote-box {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#quote-text {
    font-size: 24px;
    margin-bottom: 20px;
    line-height: 1.4;
}

#quote-author {
    font-style: italic;
    color: #666;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

.admin-section {
    margin-top: 30px;
    text-align: center;
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
}

#toggle-admin {
    font-size: 12px;
    color: #666;
    text-decoration: none;
}

#toggle-admin:hover {
    text-decoration: underline;
}

#admin-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 300px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.error {
    color: #dc3545;
    font-size: 14px;
    margin: 5px 0;
}

.hidden {
    display: none;
}

#quote-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

#quote-form input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.quote-item {
    border: 1px solid #ddd;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
}

.quote-item button {
    margin-left: 10px;
    padding: 5px 10px;
    font-size: 14px;
}

.delete-btn {
    background-color: #dc3545;
}

.delete-btn:hover {
    background-color: #c82333;
}

/* Add theme toggle styles */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
}

#theme-toggle-btn {
    font-size: 20px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid #ddd;
    cursor: pointer;
}

/* Dark mode styles */
body.dark-mode {
    background-color: #1a1a1a;
    color: #fff;
}

body.dark-mode .quote-box {
    background-color: #2d2d2d;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode #quote-author {
    color: #aaa;
}

body.dark-mode button {
    background-color: #4a4a4a;
}

body.dark-mode button:hover {
    background-color: #5a5a5a;
}

body.dark-mode #toggle-admin {
    color: #aaa;
}

body.dark-mode #admin-panel {
    background-color: #2d2d2d;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

body.dark-mode #quote-form input {
    background-color: #1a1a1a;
    border-color: #444;
    color: #fff;
}

body.dark-mode .quote-item {
    border-color: #444;
}

body.dark-mode #theme-toggle-btn {
    border-color: #444;
    color: #fff;
}

/* Add this after the existing button styles */
.quote-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.quote-controls button {
    min-width: 100px;
}

.import-section {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.import-section h4 {
    margin-bottom: 10px;
}

.import-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

#csv-file {
    margin-bottom: 10px;
}

/* Dark mode styles for import section */
body.dark-mode .import-section {
    border-color: #444;
}

body.dark-mode .import-info {
    color: #aaa;
} 