/* AgriConnect Custom Styles */

:root {
    --primary-dark: #3d7a3d;
    --primary-light: #5cb85c;
    --primary-gradient: linear-gradient(135deg, #3d7a3d 0%, #5cb85c 100%);
    --bg-light: #f0fff0;
}

/* Login Page Styles */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-box {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-title {
    color: var(--primary-dark);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.login-form .form-label {
    color: #555;
    font-weight: 500;
    font-size: 0.9rem;
}

.login-form .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.2s;
}

.login-form .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(92, 184, 92, 0.15);
}

.btn-login {
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-weight: 600;
    padding: 14px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(61, 122, 61, 0.35);
    color: white;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

/* Navigation Styles */
.navbar-agri {
    background: var(--primary-gradient);
}

.navbar-agri .navbar-brand {
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
}

.navbar-agri .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.navbar-agri .nav-link:hover {
    color: white;
}

.navbar-agri .nav-link.active {
    color: white;
    font-weight: 500;
}

/* Dashboard Styles */
.dashboard-container {
    padding: 30px 0;
}

.page-header {
    background: var(--primary-gradient);
    color: white;
    padding: 25px 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.page-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.page-header .subtitle {
    margin: 5px 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Placeholder content */
.placeholder-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 60px 30px;
    text-align: center;
}

.placeholder-content i {
    font-size: 4rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.placeholder-content h2 {
    color: #333;
    margin-bottom: 10px;
}

.placeholder-content p {
    color: #666;
    margin: 0;
}

/* Alert customization */
.alert {
    border: none;
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .login-box {
        padding: 30px 25px;
    }

    .login-title {
        font-size: 1.6rem;
    }
}

/* 更新ありバッジのアニメーション */
.badge-client-update {
    background-color: #dc3545 !important;
    color: white !important;
    animation: pulse-badge 1.5s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}
