* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --bg-color: #1a1f2e;
    --card-bg: #ffffff0d;
    --text-color: #fff;
    --button-bg: #ffffff14;
    --button-hover: #ffffff29;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body.light-theme {
    --bg-color: #f5f7fa;
    --card-bg: #ffffff;
    --text-color: #2d3436;
    --button-bg: #e8ecf0;
    --button-hover: #dde1e6;
    --border-color: #e1e8ef;
    --shadow-color: rgba(149, 157, 165, 0.1);
}

body {
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 2rem;
    transition: background-color 0.3s ease;
}

header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 1rem;
    margin-bottom: 1rem;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    grid-column: 2;
    padding: 0 2rem;
}

.logo span {
    color: #3498db;
    background: linear-gradient(135deg, #e74c3c, #f1c40f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo:hover span {
    background: linear-gradient(135deg, #f1c40f, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#themeToggle {
    grid-column: 3;
    justify-self: end;
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-color);
}

#themeToggle:hover {
    background: var(--button-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.new-timer-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 2rem;
}

.new-timer-form button {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: all 0.3s ease;
}

.new-timer-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

#addTimer {
    background: #3498db;
    color: white;
    border: none;
}

#resetAll {
    background: var(--button-bg);
}

.timers-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.timer-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 4px 16px var(--shadow-color);
    transition: all 0.3s ease;
}

.timer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow-color);
}

.timer-title {
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    color: var(--text-color);
    background: var(--button-bg);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    width: 100%;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.timer-title:hover {
    background: var(--button-hover);
}

.timer-title:focus {
    outline: none;
    background: var(--button-hover);
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.timer-title::placeholder {
    color: var(--text-color);
    opacity: 0.5;
}

.time-display {
    font-size: 3.5rem;
    font-weight: bold;
    text-align: center;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
    color: var(--text-color);
    text-shadow: 0 2px 4px var(--shadow-color);
}

.controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

button {
    background: var(--button-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: var(--button-hover);
    transform: translateY(-1px);
}

.start {
    background: #2ecc71;
    color: white;
    border: none;
}

.delete {
    background: #e74c3c;
    color: white;
    border: none;
}

.add-timer-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    position: relative;
}

.timer-count-input {
    width: 80px;
    height: 45px;
    padding: 0.8rem;
    font-size: 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.timer-count-input:hover {
    border-color: rgba(52, 152, 219, 0.5);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.timer-count-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Chrome, Safari, Edge için ok tuşlarını gizle */
.timer-count-input::-webkit-inner-spin-button,
.timer-count-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox için ok tuşlarını gizle */
.timer-count-input[type='number'] {
    -moz-appearance: textfield;
}

/* Sayı girişi etiketi */
.add-timer-group::before {
    content: 'Count';
    position: absolute;
    left: 8px;
    top: -8px;
    font-size: 0.75rem;
    background: var(--card-bg);
    padding: 0 0.5rem;
    color: var(--text-color);
    opacity: 0.7;
    border-radius: 4px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.timer-count-input:focus ~ .add-timer-group::before,
.timer-count-input:hover ~ .add-timer-group::before {
    opacity: 1;
    color: #3498db;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(to top, var(--bg-color) 60%, transparent);
}

.contact-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2ecc71, #3498db);
}

.contact-icon {
    transition: transform 0.3s ease;
}

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