/* AMI Farmer Poultry Manager - Public Styles */
.afppm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.afppm-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.afppm-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
}

.afppm-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1em;
}

.afppm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.afppm-stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease;
}

.afppm-stat-card:hover {
    transform: translateY(-5px);
}

.afppm-stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.afppm-stat-number {
    font-size: 2.2em;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.afppm-stat-card.income .afppm-stat-number {
    color: #00a32a;
}

.afppm-stat-card.expense .afppm-stat-number {
    color: #d63638;
}

.afppm-stat-card.profit .afppm-stat-number {
    color: #0073aa;
}

.afppm-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.afppm-card-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.afppm-card-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.4em;
}

.afppm-card-body {
    padding: 25px;
}

.afppm-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.afppm-table th,
.afppm-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.afppm-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #667eea;
}

.afppm-table tr:hover {
    background: #f8f9fa;
}

.afppm-form-group {
    margin-bottom: 20px;
}

.afppm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.afppm-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.afppm-form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.afppm-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.afppm-btn:hover {
    background: #5a6fd8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.afppm-btn-success {
    background: #00a32a;
}

.afppm-btn-success:hover {
    background: #008a20;
    box-shadow: 0 5px 15px rgba(0, 163, 42, 0.3);
}

.afppm-btn-danger {
    background: #d63638;
}

.afppm-btn-danger:hover {
    background: #b32d2e;
    box-shadow: 0 5px 15px rgba(214, 54, 56, 0.3);
}

.afppm-btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.afppm-btn-outline:hover {
    background: #667eea;
    color: white;
}

.afppm-alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.afppm-alert-success {
    background: #edfaef;
    border-color: #00a32a;
    color: #005a18;
}

.afppm-alert-error {
    background: #fcf0f1;
    border-color: #d63638;
    color: #8a2424;
}

.afppm-alert-info {
    background: #f0f6ff;
    border-color: #2271b1;
    color: #135e96;
}

.afppm-chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

.afppm-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 25px;
}

.afppm-tab {
    padding: 12px 25px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.afppm-tab:hover {
    color: #667eea;
}

.afppm-tab.active {
    border-bottom-color: #667eea;
    color: #667eea;
}

.afppm-tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.afppm-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.afppm-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.afppm-badge-success {
    background: #edfaef;
    color: #005a18;
}

.afppm-badge-warning {
    background: #fef4e8;
    color: #8a4600;
}

.afppm-badge-danger {
    background: #fcf0f1;
    color: #8a2424;
}

.afppm-badge-info {
    background: #f0f6ff;
    color: #135e96;
}

.afppm-action-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.afppm-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.afppm-project-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.afppm-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.afppm-project-card-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.afppm-project-card-header h3 {
    margin: 0 0 5px 0;
    font-size: 1.3em;
}

.afppm-project-card-body {
    padding: 20px;
}

.afppm-project-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.afppm-meta-item {
    text-align: center;
}

.afppm-meta-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.afppm-meta-value {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.afppm-login-form {
    max-width: 400px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.afppm-login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.afppm-no-data {
    text-align: center;
    padding: 40px;
    color: #666;
}

.afppm-no-data i {
    font-size: 3em;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .afppm-container {
        padding: 15px;
    }
    
    .afppm-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .afppm-project-grid {
        grid-template-columns: 1fr;
    }
    
    .afppm-table {
        font-size: 12px;
    }
    
    .afppm-table th,
    .afppm-table td {
        padding: 10px 8px;
    }
    
    .afppm-tabs {
        flex-wrap: wrap;
    }
    
    .afppm-tab {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
    
    .afppm-action-links {
        flex-direction: column;
    }
    
    .afppm-btn {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* Loading States */
.afppm-loading {
    opacity: 0.6;
    pointer-events: none;
}

.afppm-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .afppm-btn,
    .afppm-action-links {
        display: none !important;
    }
    
    .afppm-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}