:root {
    --primary-color: #66dc57;
    --primary-hover: #55b746;
    --primary-light: #f0fff4;
    --secondary-color: #4a5568;
    --danger-color: #e53e3e;
    --danger-light: #fff5f5;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #2d3748;
    --text-muted: #4a5568;
    --text-light: #718096;
    --text-white: #ffffff;
    --border-color: #edf2f7;
    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --transition: all 0.2s ease;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    margin-top: 0;
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* Common Components */
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    padding: 25px;
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.3);
}

.btn-danger {
    background-color: var(--danger-light);
    color: var(--danger-color);
}

.btn-danger:hover {
    background-color: #feb2b2;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    gap: 5px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

input[type="text"], 
input[type="number"], 
input[type="email"], 
input[type="password"],
select, 
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: white;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 220, 87, 0.1);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #f7fafc;
    color: var(--text-muted);
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid var(--border-color);
    font-size: 0.85rem;
}

td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.95rem;
}

tr:hover td {
    background-color: #fcfcfc;
}
