/* GrowSoft - Farm Management Software */
/* Global Styles */

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

:root {
    --accent-color: #569448;
    --accent-hover: #6ba559;
    --bg-color: #000000;
    --text-color: #ffffff;
    --error-color: #ff4444;
    --success-color: #00cc66;
    --input-bg: #1a1a1a;
    --border-color: #333333;
}

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

/* Header Styles */
.header {
    background-color: #000000;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--accent-color);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    height: 60px;
    width: auto;
}

.app-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.welcome-message {
    font-size: 16px;
    color: var(--text-color);
}

.logout-btn {
    background-color: var(--error-color);
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background-color: #cc0000;
    transform: scale(1.05);
}

.header-btn {
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.header-btn:hover {
    background-color: var(--accent-hover);
    transform: scale(1.05);
}

/* Main Container */
.container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.login-container {
    background-color: #1a1a1a;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(86, 148, 72, 0.3);
    min-width: 600px;
    border: 2px solid var(--accent-color);
}

.login-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.login-subtitle {
    text-align: center;
    font-size: 16px;
    margin-bottom: 30px;
    color: #999;
}

/* Input Section */
.input-section {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.input-area {
    flex: 1;
}

.input-label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--text-color);
}

.input-field {
    width: 100%;
    padding: 15px;
    font-size: 24px;
    background-color: var(--input-bg);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    letter-spacing: 2px;
    transition: border-color 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Number Pad */
.number-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 200px;
}

.num-btn {
    padding: 20px;
    font-size: 24px;
    font-weight: bold;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.num-btn:hover {
    background-color: var(--accent-hover);
    transform: scale(1.05);
}

.num-btn:active {
    transform: scale(0.95);
}

.num-btn.zero {
    grid-column: 2;
}

.num-btn.clear {
    background-color: var(--error-color);
    grid-column: 1;
}

.num-btn.backspace {
    background-color: #ff8800;
    grid-column: 3;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    flex: 1;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

.btn-secondary {
    background-color: #555;
    color: white;
}

.btn-secondary:hover {
    background-color: #666;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Messages */
.message {
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    animation: slideIn 0.3s ease;
}

.message.error {
    background-color: rgba(255, 68, 68, 0.2);
    border: 1px solid var(--error-color);
    color: var(--error-color);
}

.message.success {
    background-color: rgba(0, 204, 102, 0.2);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.message.info {
    background-color: rgba(69, 29, 90, 0.2);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

/* Main Menu */
.main-menu {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
}

.menu-title {
    font-size: 32px;
    color: var(--accent-color);
    margin-bottom: 30px;
    text-align: center;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.module-card {
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 40px;
    border-radius: 15px;
    border: 2px solid var(--accent-color);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(86, 148, 72, 0.5);
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.coming-soon-card {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #2a2a2a;
    border-color: #444;
}

.coming-soon-card:hover {
    transform: none;
    box-shadow: none;
    background-color: #2a2a2a;
    border-color: #444;
}

.coming-soon-banner {
    position: absolute;
    top: 25px;
    right: -50px;
    background-color: #ff0000;
    color: white;
    padding: 10px 80px;
    font-size: 14px;
    font-weight: bold;
    transform: rotate(45deg);
    transform-origin: center;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    min-height: 30px;
}

.module-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.module-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.module-description {
    font-size: 14px;
    color: #e0e0e0;
}

.coming-soon {
    background-color: rgba(86, 148, 72, 0.2);
    padding: 60px;
    border-radius: 15px;
    text-align: center;
    border: 2px dashed var(--accent-color);
}

.coming-soon h2 {
    font-size: 28px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.coming-soon p {
    font-size: 16px;
    color: #999;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        min-width: auto;
        width: 100%;
        padding: 30px;
    }

    .input-section {
        flex-direction: column;
        align-items: center;
    }

    .number-pad {
        width: 100%;
        max-width: 300px;
    }

    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header-right {
        flex-direction: column;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer Styles */
.footer {
    background-color: #000000;
    color: var(--text-color);
    text-align: center;
    padding: 20px 30px;
    font-size: 14px;
    border-top: 1px solid #333333;
    margin-top: auto;
}

.footer a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Version Update Popup */
.version-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.version-popup-content {
    background-color: #1a1a1a;
    border: 3px solid var(--accent-color);
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(86, 148, 72, 0.5);
}

.version-popup-header {
    background-color: var(--accent-color);
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.version-popup-header h2 {
    color: #ffffff;
    margin: 0;
    font-size: 24px;
}

.version-popup-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.version-popup-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.version-popup-body {
    padding: 30px;
    color: var(--text-color);
}

.version-number {
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--accent-color);
}

.version-number strong {
    color: var(--text-color);
}

.release-notes {
    margin-top: 20px;
}

.release-notes strong {
    display: block;
    margin-bottom: 15px;
    color: var(--accent-color);
    font-size: 18px;
}

.release-notes ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.release-notes ul li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    border-bottom: 1px solid #333;
}

.release-notes ul li:last-child {
    border-bottom: none;
}

.release-notes ul li:before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 20px;
}

.version-popup-footer {
    padding: 20px;
    border-top: 1px solid #333;
    text-align: right;
    background-color: #0a0a0a;
    border-radius: 0 0 12px 12px;
}

