:root {
    --primary-color: #4a90e2;
    --primary-hover: #357abd;
    --sidebar-bg: #2c3e50;
    --sidebar-text: #ecf0f1;
    --content-bg: #f5f7fa;
    --text-color: #333;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    display: flex;
    height: 100vh;
    color: var(--text-color);
    background-color: var(--content-bg);
}

.container {
    display: flex;
    width: 100%;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 20px;
    height: 100%;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.sidebar h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin-bottom: 5px;
}

.sidebar a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.sidebar a:hover, .sidebar a.active {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    transform: translateX(5px);
}

/* Content Area Styling */
.content {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
    background-color: var(--content-bg);
}

#tool-container {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

h1 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

p {
    line-height: 1.6;
}

/* Input Styling */
.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

input[type="text"], input[type="datetime-local"], select, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.2s;
    font-family: inherit;
}

input[type="text"]:focus, input[type="datetime-local"]:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Button Styling */
button {
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.1s;
}

button:hover {
    background-color: var(--primary-hover);
}

button:active {
    transform: scale(0.98);
}

/* Result Area Styling */
.result-area {
    margin-top: 25px;
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    min-height: 60px;
    white-space: pre-wrap;
    word-break: break-all;
    border-radius: var(--border-radius);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1.1rem;
    color: #333;
}

.coder-area {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 30px 0;
}

/* Info Box Styling */
.info-box {
    background-color: #e3f2fd;
    border-left: 5px solid var(--primary-color);
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 0.95rem;
}

.info-box ul {
    list-style-type: none; /* Removed bullet points for cleaner look */
    padding-left: 0;
    margin: 10px 0 0 0;
}

.info-box li {
    margin-bottom: 5px;
    display: inline-block;
    margin-right: 15px;
}

.info-box a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.info-box a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        padding: 15px;
    }
    .content {
        padding: 20px;
    }
}