/*
Theme Name: RenTrip HRMS Theme
Description: Complete 360-degree feedback and HRMS system for RenTrip. Features employee dashboards, feedback management, user roles, and professional design.
Version: 1.0.0
Author: RenTrip HR Team
Author URI: https://rentrip.org
Text Domain: rentrip-hrms
*/

/* RenTrip HRMS Theme - Complete Styling System */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background: #f8f9ff;
}

.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.site-description {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.main-navigation a:hover {
    opacity: 0.8;
}

.site-main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
    min-height: 80vh;
}

.site-footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* RenTrip Dashboard Styles */
.rentrip-dashboard,
.rentrip-admin-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.rentrip-dashboard-header,
.admin-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.rentrip-dashboard-header h1,
.rentrip-dashboard-header h2,
.admin-header h1 {
    margin: 0 0 15px 0;
    font-size: 2.8em;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-subtitle,
.admin-subtitle {
    margin: 0;
    opacity: 0.95;
    font-size: 1.3em;
    font-weight: 300;
}

.rentrip-dashboard-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.rentrip-card,
.admin-card,
.stat-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid #f0f2f7;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.rentrip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.rentrip-card:hover,
.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
}

.card-icon,
.stat-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-align: center;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.rentrip-card h3,
.admin-card h3 {
    margin: 0 0 25px 0;
    color: #2d3748;
    font-size: 1.6em;
    font-weight: 600;
    text-align: center;
}

.stat-number {
    font-size: 4em;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: none;
}

.stat-label {
    text-align: center;
    color: #718096;
    margin-bottom: 20px;
    font-size: 1.1em;
    font-weight: 500;
}

/* Admin Navigation */
.admin-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    flex-wrap: wrap;
    justify-content: center;
}

.nav-btn {
    padding: 15px 25px;
    border: none;
    background: #f7fafc;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex: 1;
    min-width: 180px;
    color: #4a5568;
    border: 2px solid transparent;
}

.nav-btn:hover {
    background: #edf2f7;
    transform: translateY(-2px);
    color: #2d3748;
}

.nav-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.admin-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.admin-section.active {
    display: block;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2d3748;
    font-size: 1.1em;
}

.form-group input,
.form-group select,
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #ffffff;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: #ffffff;
}

/* Table Styles */
.users-table table,
.feedback-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.users-table th,
.users-table td,
.feedback-table th,
.feedback-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.users-table th,
.feedback-table th {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    font-weight: 700;
    color: #2d3748;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.users-table tr:hover,
.feedback-table tr:hover {
    background: #f8fafc;
}

/* Action Buttons */
.action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    margin-right: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.action-btn.edit {
    background: #48bb78;
    color: white;
}

.action-btn.edit:hover {
    background: #38a169;
    transform: scale(1.05);
}

.action-btn.delete {
    background: #f56565;
    color: white;
}

.action-btn.delete:hover {
    background: #e53e3e;
    transform: scale(1.05);
}

.action-btn.view {
    background: #4299e1;
    color: white;
}

.action-btn.view:hover {
    background: #3182ce;
    transform: scale(1.05);
}

/* RenTrip Buttons */
.rentrip-btn {
    display: inline-block;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.rentrip-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.rentrip-btn:hover::before {
    left: 100%;
}

.rentrip-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.rentrip-btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.6);
}

.rentrip-btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.rentrip-btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px) scale(1.05);
}

/* Feedback Form Styles */
.rentrip-feedback-form {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #f1f5f9;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 3px solid #f1f5f9;
}

.form-header h3 {
    color: #2d3748;
    margin: 0 0 15px 0;
    font-size: 2.2em;
    font-weight: 700;
}

.form-header p {
    color: #718096;
    margin: 0;
    font-size: 1.2em;
    line-height: 1.6;
}

.feedback-questions {
    margin: 40px 0;
}

.question-section {
    margin-bottom: 35px;
    padding: 30px;
    border-radius: 15px;
    border-left: 6px solid #e2e8f0;
    position: relative;
    transition: all 0.3s ease;
}

.question-section:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.question-section.positive {
    background: linear-gradient(145deg, #f0fff4 0%, #e6fffa 100%);
    border-left-color: #48bb78;
}

.question-section.improvement {
    background: linear-gradient(145deg, #fffbeb 0%, #fef5e7 100%);
    border-left-color: #ed8936;
}

.question-section.suggestion {
    background: linear-gradient(145deg, #ebf8ff 0%, #e6fffa 100%);
    border-left-color: #4299e1;
}

.question-section label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 1.3em;
    font-weight: 700;
    color: #2d3748;
}

.question-icon {
    font-size: 1.8em;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

.helper-text {
    display: block;
    margin-top: 8px;
    color: #718096;
    font-style: italic;
    font-size: 1em;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 3px solid #f1f5f9;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 35px;
    border-bottom: 3px solid #f1f5f9;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.6em;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2.5em;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.edit-user-form {
    padding: 35px;
}

.modal-actions {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 2px solid #f1f5f9;
}

/* Message Styles */
.rentrip-success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 6px solid #48bb78;
    font-weight: 600;
    font-size: 1.1em;
}

.rentrip-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f1aeb5 100%);
    color: #721c24;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1em;
    border-left: 6px solid #f56565;
}

.rentrip-login-notice {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid #f1f5f9;
}

.rentrip-login-notice h3 {
    color: #2d3748;
    font-size: 1.8em;
    margin-bottom: 15px;
}

/* Activity and Stats */
.recent-activity,
.activity-list {
    background: #f8fafc;
    padding: 30px;
    border-radius: 15px;
    margin-top: 35px;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: white;
    margin: 12px 0;
    border-radius: 10px;
    border-left: 5px solid #667eea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.activity-item:hover {
    transform: translateX(5px);
}

.activity-date {
    color: #718096;
    font-size: 0.95em;
    font-weight: 500;
}

.feedback-filters {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Homepage Styles */
.rentrip-homepage {
    text-align: center;
    padding: 60px 20px;
}

.homepage-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 40px;
    border-radius: 25px;
    margin-bottom: 60px;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.homepage-hero h1 {
    font-size: 3.5em;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.homepage-hero p {
    font-size: 1.4em;
    opacity: 0.95;
    margin-bottom: 35px;
    line-height: 1.6;
}

.homepage-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin: 60px 0;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border-top: 5px solid #667eea;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: #2d3748;
    font-size: 1.5em;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }

    .rentrip-dashboard,
    .rentrip-admin-dashboard {
        padding: 15px;
    }

    .rentrip-dashboard-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .rentrip-dashboard-header h1,
    .rentrip-dashboard-header h2 {
        font-size: 2em;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-nav {
        flex-direction: column;
    }

    .nav-btn {
        min-width: 100%;
    }

    .form-actions {
        flex-direction: column;
    }

    .modal-actions {
        flex-direction: column;
    }

    .rentrip-feedback-form {
        padding: 25px;
        margin: 15px;
    }

    .homepage-hero h1 {
        font-size: 2.5em;
    }

    .homepage-hero p {
        font-size: 1.2em;
    }

    .feedback-filters {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .rentrip-card,
    .admin-card {
        padding: 20px;
    }

    .question-section {
        padding: 20px;
    }

    .rentrip-btn {
        padding: 12px 20px;
        font-size: 1em;
    }

    .form-group input,
    .form-group select,
    .form-textarea {
        padding: 12px 15px;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .admin-nav,
    .form-actions,
    .action-btn {
        display: none;
    }

    .rentrip-card,
    .admin-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}