/* Light Minimalist Theme - Toolbox */

:root {
    --bg-app: #f2f3f5;
    --bg-sidebar: #ffffff;
    --bg-card: #ffffff;

    --text-primary: #111827;
    --text-secondary: #6b7280;

    --accent-primary: #7c3aed;
    /* Deep Purple */
    --accent-soft: #f3e8ff;
    /* Light Purple Bg */
    --accent-hover: #6d28d9;

    --border-color: #e5e7eb;

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-app);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.app {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid transparent;
    /* Cleaner look */
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 48px;
    color: var(--text-primary);
    padding-left: 24px;
}

nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nav-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-label {
    padding-left: 14px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.sidebar nav ul li {
    margin-bottom: 4px;
}

.sidebar nav ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.sidebar nav ul li a i {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.sidebar nav ul li a:hover {
    background: rgba(0, 0, 0, 0.04);
}

.sidebar nav ul li a:hover i {
    color: var(--text-primary);
}

.sidebar nav ul li.active a {
    background: #111827;
    color: white;
}

.sidebar nav ul li.active a i {
    color: white;
}

/* Content Area */
.content {
    flex: 1;
    padding: 40px 60px;
    max-width: 1200px;
}

.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.section-header p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 500;
}

.back-link {
    display: inline-block;
    margin-bottom: 24px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.back-link:hover {
    transform: translateY(-1px);
    color: var(--text-primary);
    box-shadow: var(--shadow-card);
}

/* Tools Grid */
.tools,
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.tool-card {
    background: var(--bg-card);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    /* Vertical layout */
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 220px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-primary);
}

.tool-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.tool-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.tool-card p {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Tool UI Container */
.tool-ui {
    max-width: 800px;
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

/* Form Elements */
.field {
    margin-bottom: 24px;
}

.field label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Checkbox specific override */
.inline-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    text-transform: none !important;
    font-weight: 500 !important;
    color: var(--text-primary) !important;
    font-size: 15px !important;
    letter-spacing: 0;
    cursor: pointer;
}

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

textarea,
input[type="text"],
select {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--bg-app);
    background: var(--bg-app);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 16px;
    color: var(--text-primary);
    transition: all 0.2s;
    resize: vertical;
}

textarea:focus,
input[type="text"]:focus,
select:focus {
    outline: none;
    background: #fff;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Buttons */
button,
.primary-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    margin-bottom: 32px;
}

button:hover,
.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    filter: brightness(1.05);
}

button:active,
.primary-btn:active {
    transform: translateY(0);
}

button:disabled {
    background: var(--bg-app);
    color: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    filter: none;
}

.secondary-btn {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
}

.secondary-btn:hover {
    border-color: var(--text-secondary);
    background: var(--bg-app);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Copy Button specialized */
.copy-btn {
    background: var(--accent-soft);
    color: var(--accent-primary);
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.copy-btn:hover {
    background: var(--accent-primary);
    color: white;
    transform: none;
    box-shadow: none;
}

.copy-btn.copied {
    background: #d1fae5;
    color: #059669;
}

/* File Drop Area */
.file-drop-area {
    background: var(--bg-app);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 60px 20px;
    transition: all 0.2s;
}

.file-drop-area:hover {
    border-color: var(--accent-primary);
    background: var(--accent-soft);
}

/* Status Messages */
.status {
    background: #d1fae5;
    color: #065f46;
    padding: 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Pomodoro Specifics Overrides */
.timer-display {
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -2px;
    text-shadow: none;
}

.timer-modes {
    background: var(--bg-app);
    padding: 6px;
}

.mode-btn {
    color: var(--text-secondary);
}

.mode-btn.active {
    background: #fff;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.primary-btn.running {
    background: #ef4444;
    /* Red */
    color: white;
}